@@ -24,7 +24,7 @@ public static IEnumerable<object[]> GetToolchains()
24
24
25
25
public ArgumentsTests ( ITestOutputHelper output ) : base ( output ) { }
26
26
27
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
27
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
28
28
public void ArgumentsArePassedToBenchmarks ( IToolchain toolchain ) => CanExecute < WithArguments > ( toolchain ) ;
29
29
30
30
public class WithArguments
@@ -61,7 +61,7 @@ public ValueTask<int> SimpleValueTaskAsync(bool boolean, int number)
61
61
}
62
62
}
63
63
64
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
64
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
65
65
public void ArgumentsFromSourceArePassedToBenchmarks ( IToolchain toolchain ) => CanExecute < WithArgumentsSource > ( toolchain ) ;
66
66
67
67
public class WithArgumentsSource
@@ -81,7 +81,7 @@ public IEnumerable<object[]> ArgumentsProvider()
81
81
}
82
82
}
83
83
84
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
84
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
85
85
public void ArgumentsFromSourceInAnotherClassArePassedToBenchmarks ( IToolchain toolchain ) => CanExecute < WithArgumentsSourceInAnotherClass > ( toolchain ) ;
86
86
87
87
public class WithArgumentsSourceInAnotherClass
@@ -103,7 +103,7 @@ public static IEnumerable<object[]> ArgumentsProvider()
103
103
}
104
104
}
105
105
106
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
106
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
107
107
public void ArgumentsCanBePassedByReferenceToBenchmark ( IToolchain toolchain ) => CanExecute < WithRefArguments > ( toolchain ) ;
108
108
109
109
public class WithRefArguments
@@ -118,7 +118,7 @@ public void Simple(ref bool boolean, ref int number)
118
118
}
119
119
}
120
120
121
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
121
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
122
122
public void ArgumentsCanBePassedByReadonlyReferenceToBenchmark ( IToolchain toolchain ) => CanExecute < WithInArguments > ( toolchain ) ;
123
123
124
124
public class WithInArguments
@@ -133,7 +133,7 @@ public void Simple(in bool boolean, in int number)
133
133
}
134
134
}
135
135
136
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
136
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
137
137
public void NonCompileTimeConstantsCanBeReturnedFromSource ( IToolchain toolchain ) => CanExecute < WithComplexTypesReturnedFromSources > ( toolchain ) ;
138
138
139
139
public class WithComplexTypesReturnedFromSources
@@ -190,7 +190,7 @@ public struct SomeStruct
190
190
}
191
191
}
192
192
193
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
193
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
194
194
public void ArrayCanBeUsedAsArgument ( IToolchain toolchain ) => CanExecute < WithArray > ( toolchain ) ;
195
195
196
196
public class WithArray
@@ -208,7 +208,7 @@ public void AcceptingArray(int[] array)
208
208
}
209
209
}
210
210
211
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
211
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
212
212
public void IEnumerableCanBeUsedAsArgument ( IToolchain toolchain ) => CanExecute < WithIEnumerable > ( toolchain ) ;
213
213
214
214
public class WithIEnumerable
@@ -233,7 +233,7 @@ public IEnumerable<object[]> Sources()
233
233
public void Any ( string name , IEnumerable < int > source ) => source . Any ( ) ;
234
234
}
235
235
236
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
236
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
237
237
public void JaggedArrayCanBeUsedAsArgument ( IToolchain toolchain ) => CanExecute < WithJaggedArray > ( toolchain ) ;
238
238
239
239
public class WithJaggedArray
@@ -269,7 +269,7 @@ public IEnumerable<object> CreateMatrix()
269
269
}
270
270
}
271
271
272
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
272
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
273
273
public void GenericTypeCanBePassedByRefAsArgument ( IToolchain toolchain ) => CanExecute < WithGenericByRef > ( toolchain ) ;
274
274
275
275
public class WithGenericByRef
@@ -305,7 +305,7 @@ public IEnumerable<object> GetInputData()
305
305
}
306
306
}
307
307
308
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
308
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
309
309
public void AnArrayOfTypeWithNoParameterlessCtorCanBePassedAsArgument ( IToolchain toolchain ) => CanExecute < WithArrayOfStringAsArgument > ( toolchain ) ;
310
310
311
311
public class WithArrayOfStringAsArgument
@@ -322,7 +322,7 @@ public void TypeReflectionArrayGetType(object anArray)
322
322
}
323
323
}
324
324
325
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
325
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
326
326
public void AnArrayCanBePassedToBenchmarkAsSpan ( IToolchain toolchain ) => CanExecute < WithArrayToSpan > ( toolchain ) ;
327
327
328
328
public class WithArrayToSpan
@@ -342,7 +342,7 @@ public void AcceptsSpan(Span<int> span)
342
342
343
343
[ TheoryEnvSpecific ( "The implicit cast operator is available only in .NET Core 2.1+ (See https://github.com/dotnet/corefx/issues/30121 for more)" ,
344
344
EnvRequirement . DotNetCoreOnly ) ]
345
- [ MemberData ( nameof ( GetToolchains ) ) ]
345
+ [ MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
346
346
public void StringCanBePassedToBenchmarkAsReadOnlySpan ( IToolchain toolchain ) => CanExecute < WithStringToReadOnlySpan > ( toolchain ) ;
347
347
348
348
public class WithStringToReadOnlySpan
@@ -360,7 +360,7 @@ public void AcceptsReadOnlySpan(ReadOnlySpan<char> notString)
360
360
}
361
361
}
362
362
363
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
363
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
364
364
public void AnArrayOfStringsCanBeUsedAsArgument ( IToolchain toolchain ) =>
365
365
CanExecute < WithArrayOfStringFromArgumentSource > ( toolchain ) ;
366
366
@@ -380,7 +380,7 @@ public void TypeReflectionArrayGetType(string[] array)
380
380
}
381
381
}
382
382
383
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ] // make sure BDN mimics xunit's MemberData behaviour
383
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ] // make sure BDN mimics xunit's MemberData behaviour
384
384
public void AnIEnumerableOfArrayOfObjectsCanBeUsedAsArgumentForBenchmarkAcceptingSingleArgument ( IToolchain toolchain )
385
385
=> CanExecute < WithIEnumerableOfArrayOfObjectsFromArgumentSource > ( toolchain ) ;
386
386
@@ -400,7 +400,7 @@ public void SingleArgument(bool boolean)
400
400
}
401
401
}
402
402
403
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
403
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
404
404
public void BenchmarkCanAcceptFewArrays ( IToolchain toolchain ) => CanExecute < FewArrays > ( toolchain ) ;
405
405
406
406
public class FewArrays
@@ -429,7 +429,7 @@ public void AcceptsArrays(int[] even, int[] notEven)
429
429
}
430
430
}
431
431
432
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
432
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
433
433
public void VeryBigIntegersAreSupported ( IToolchain toolchain ) => CanExecute < WithVeryBigInteger > ( toolchain ) ;
434
434
435
435
public class WithVeryBigInteger
@@ -450,7 +450,7 @@ public void Method(BigInteger passed)
450
450
}
451
451
}
452
452
453
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
453
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
454
454
public void SpecialDoubleValuesAreSupported ( IToolchain toolchain ) => CanExecute < WithSpecialDoubleValues > ( toolchain ) ;
455
455
456
456
public class WithSpecialDoubleValues
@@ -495,7 +495,7 @@ public void Method(double passed, string name)
495
495
}
496
496
}
497
497
498
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
498
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
499
499
public void SpecialFloatValuesAreSupported ( IToolchain toolchain ) => CanExecute < WithSpecialFloatValues > ( toolchain ) ;
500
500
501
501
public class WithSpecialFloatValues
@@ -540,7 +540,7 @@ public void Method(float passed, string name)
540
540
}
541
541
}
542
542
543
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
543
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
544
544
public void SpecialDecimalValuesAreSupported ( IToolchain toolchain ) => CanExecute < WithSpecialDecimalValues > ( toolchain ) ;
545
545
546
546
public class WithSpecialDecimalValues
@@ -569,7 +569,7 @@ public void Method(decimal passed, string name)
569
569
}
570
570
}
571
571
572
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
572
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
573
573
public void DateTimeCanBeUsedAsArgument ( IToolchain toolchain ) => CanExecute < WithDateTime > ( toolchain ) ;
574
574
575
575
public class WithDateTime
@@ -590,7 +590,7 @@ public void Test(DateTime passed)
590
590
}
591
591
}
592
592
593
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
593
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
594
594
public void CustomTypeThatAlsoExistsInTheSystemNamespaceAsArgument ( IToolchain toolchain ) => CanExecute < CustomTypeThatAlsoExistsInTheSystemNamespace > ( toolchain ) ;
595
595
596
596
public class CustomTypeThatAlsoExistsInTheSystemNamespace
@@ -611,7 +611,7 @@ public void Test(Action passed)
611
611
}
612
612
}
613
613
614
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
614
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
615
615
public void EnumFlagsAreSupported ( IToolchain toolchain ) => CanExecute < WithEnumFlags > ( toolchain ) ;
616
616
617
617
public class WithEnumFlags
@@ -648,7 +648,7 @@ public void Test(LongFlagEnum passedLongFlagEnum, ByteFlagEnum passedByteFlagEnu
648
648
}
649
649
}
650
650
651
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
651
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
652
652
public void UndefinedEnumValuesAreSupported ( IToolchain toolchain ) => CanExecute < WithUndefinedEnumValue > ( toolchain ) ;
653
653
654
654
public class WithUndefinedEnumValue
@@ -674,7 +674,7 @@ public void Test(SomeEnum defined, SomeEnum undefined, SomeEnum undefinedNegativ
674
674
}
675
675
}
676
676
677
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
677
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
678
678
public void StaticMethodsAndPropertiesCanBeUsedAsSources_EnumerableOfObjects ( IToolchain toolchain )
679
679
=> CanExecute < WithStaticSources_EnumerableOfObjects > ( toolchain ) ;
680
680
@@ -722,7 +722,7 @@ public void TestProperty(int argument)
722
722
}
723
723
}
724
724
725
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
725
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
726
726
public void StaticMethodsAndPropertiesCanBeUsedAsSources_EnumerableOfArrayOfObjects ( IToolchain toolchain )
727
727
=> CanExecute < WithStaticSources_EnumerableOfArrayOfObjects > ( toolchain ) ;
728
728
@@ -769,7 +769,7 @@ public void TestProperty(int argument)
769
769
}
770
770
}
771
771
772
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
772
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
773
773
public void MethodsAndPropertiesFromAnotherClassCanBeUsedAsSources ( IToolchain toolchain )
774
774
=> CanExecute < ParamsSourcePointingToAnotherClass > ( toolchain ) ;
775
775
@@ -805,7 +805,7 @@ public static IEnumerable<int> Property
805
805
}
806
806
}
807
807
808
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
808
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
809
809
public void VeryLongStringsAreSupported ( IToolchain toolchain ) => CanExecute < WithVeryLongString > ( toolchain ) ;
810
810
811
811
public class WithVeryLongString
@@ -829,7 +829,7 @@ public void Test(string first, string second)
829
829
}
830
830
}
831
831
832
- [ Theory , MemberData ( nameof ( GetToolchains ) ) ]
832
+ [ Theory , MemberData ( nameof ( GetToolchains ) , DisableDiscoveryEnumeration = true ) ]
833
833
public void ComplexStringPattersAreSupported ( IToolchain toolchain ) => CanExecute < Perf_Regex_Industry_RustLang_Sherlock > ( toolchain ) ;
834
834
835
835
public class Perf_Regex_Industry_RustLang_Sherlock
0 commit comments