@@ -47,12 +47,12 @@ public void CollectLinuxCommandProviderConfigurationConsolidation(object testArg
4747 if ( OperatingSystem . IsLinux ( ) )
4848 {
4949 Assert . Equal ( ( int ) ReturnCode . Ok , exitCode ) ;
50- console . AssertSanitizedLinesEqual ( CollectLinuxSanitizer , expectedLines : expectedLines ) ;
50+ console . AssertSanitizedLinesEqual ( CollectLinuxSanitizer , expectedLines ) ;
5151 }
5252 else
5353 {
5454 Assert . Equal ( ( int ) ReturnCode . PlatformNotSupportedError , exitCode ) ;
55- console . AssertSanitizedLinesEqual ( null , expectedLines : new string [ ] {
55+ console . AssertSanitizedLinesEqual ( null , new string [ ] {
5656 "The collect-linux command is only supported on Linux." ,
5757 } ) ;
5858 }
@@ -66,13 +66,13 @@ public void CollectLinuxCommandProviderConfigurationConsolidation_Throws(object
6666 int exitCode = Run ( testArgs , console ) ;
6767 if ( OperatingSystem . IsLinux ( ) )
6868 {
69- Assert . Equal ( ( int ) ReturnCode . TracingError , exitCode ) ;
70- console . AssertSanitizedLinesEqual ( null , true , expectedLines : expectedException ) ;
69+ Assert . Equal ( ( int ) ReturnCode . ArgumentError , exitCode ) ;
70+ console . AssertSanitizedLinesEqual ( null , expectedException ) ;
7171 }
7272 else
7373 {
7474 Assert . Equal ( ( int ) ReturnCode . PlatformNotSupportedError , exitCode ) ;
75- console . AssertSanitizedLinesEqual ( null , expectedLines : new string [ ] {
75+ console . AssertSanitizedLinesEqual ( null , new string [ ] {
7676 "The collect-linux command is only supported on Linux." ,
7777 } ) ;
7878 }
@@ -197,31 +197,31 @@ public static IEnumerable<object[]> InvalidProviders()
197197 yield return new object [ ]
198198 {
199199 TestArgs ( profile : new [ ] { "dotnet-sampled-thread-time" } ) ,
200- new [ ] { FormatException ( "The specified profile 'dotnet-sampled-thread-time' does not apply to `dotnet-trace collect-linux`." , "System.ArgumentException" ) }
200+ new [ ] { FormatException ( "The specified profile 'dotnet-sampled-thread-time' does not apply to `dotnet-trace collect-linux`." ) }
201201 } ;
202202
203203 yield return new object [ ]
204204 {
205205 TestArgs ( profile : new [ ] { "unknown" } ) ,
206- new [ ] { FormatException ( "Invalid profile name: unknown" , "System.ArgumentException" ) }
206+ new [ ] { FormatException ( "Invalid profile name: unknown" ) }
207207 } ;
208208
209209 yield return new object [ ]
210210 {
211211 TestArgs ( providers : new [ ] { "Foo:::Bar=0" , "Foo:::Bar=1" } ) ,
212- new [ ] { FormatException ( $ "Provider \" Foo\" is declared multiple times with filter arguments.", "System.ArgumentException" ) }
212+ new [ ] { FormatException ( $ "Provider \" Foo\" is declared multiple times with filter arguments.") }
213213 } ;
214214
215215 yield return new object [ ]
216216 {
217217 TestArgs ( clrEvents : "unknown" ) ,
218- new [ ] { FormatException ( "unknown is not a valid CLR event keyword" , "System.ArgumentException" ) }
218+ new [ ] { FormatException ( "unknown is not a valid CLR event keyword" ) }
219219 } ;
220220
221221 yield return new object [ ]
222222 {
223223 TestArgs ( clrEvents : "gc" , clrEventLevel : "unknown" ) ,
224- new [ ] { FormatException ( "Unknown EventLevel: unknown" , "System.ArgumentException" ) }
224+ new [ ] { FormatException ( "Unknown EventLevel: unknown" ) }
225225 } ;
226226 }
227227
@@ -236,7 +236,7 @@ private static string FormatProvider(string name, string keywordsHex, string lev
236236 string . Format ( "{0, -8}" , $ "{ levelName } ({ levelValue } )") ;
237237 return string . Format ( "{0, -80}" , display ) + enabledBy ;
238238 }
239- private static string FormatException ( string message , string exceptionType ) => $ "[ERROR] { exceptionType } : { message } ";
239+ private static string FormatException ( string message ) => $ "[ERROR] { message } ";
240240 private static string DefaultOutputFile => $ "Output File : { Directory . GetCurrentDirectory ( ) + Path . DirectorySeparatorChar } trace.nettrace";
241241 private static readonly string [ ] CommonTail = [
242242 DefaultOutputFile ,
0 commit comments