You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/BenchmarkDotNet.IntegrationTests/ArgumentsTests.cs
+3-2
Original file line number
Diff line number
Diff line change
@@ -318,8 +318,9 @@ public void AcceptsSpan(Span<int> span)
318
318
}
319
319
}
320
320
321
-
[TheoryNetCoreOnly("the implicit cast operator is available only in .NET Core 2.1+ (See https://github.com/dotnet/corefx/issues/30121 for more)"),
322
-
MemberData(nameof(GetToolchains))]
321
+
[TheoryEnvSpecific("The implicit cast operator is available only in .NET Core 2.1+ (See https://github.com/dotnet/corefx/issues/30121 for more)",
[FactDotNetCoreOnly("When CommandLineParser wants to display help, it tries to get the Title of the Entry Assembly which is an xunit runner, which has no Title and fails..")]
28
+
[FactEnvSpecific(
29
+
"When CommandLineParser wants to display help, it tries to get the Title of the Entry Assembly which is an xunit runner, which has no Title and fails..",
Copy file name to clipboardExpand all lines: tests/BenchmarkDotNet.IntegrationTests/ExtraAttributesForEntryMethodTests.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ public ExtraAttributesForEntryMethodTests(ITestOutputHelper output) : base(outpu
11
11
{
12
12
}
13
13
14
-
[FactClassicDotNetOnly("STAThread attribute is not respected in netcoreapp https://github.com/dotnet/coreclr/issues/13688")]
14
+
[FactEnvSpecific("STAThread attribute is not respected in netcoreapp https://github.com/dotnet/coreclr/issues/13688",EnvRequirement.FullFrameworkOnly)]
Copy file name to clipboardExpand all lines: tests/BenchmarkDotNet.IntegrationTests/InProcessEmitTest.cs
+1-1
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ public void InProcessBenchmarkSimpleCasesReflectionEmitSupported()
104
104
}
105
105
}
106
106
107
-
[TheoryFullFrameworkOnly("We can't use Roslyn toolchain for .NET Core because we don't know which assemblies to reference and .NET Core does not support dynamic assembly saving")]
107
+
[TheoryEnvSpecific("We can't use Roslyn toolchain for .NET Core because we don't know which assemblies to reference and .NET Core does not support dynamic assembly saving",EnvRequirement.FullFrameworkOnly)]
Copy file name to clipboardExpand all lines: tests/BenchmarkDotNet.IntegrationTests/MemoryDiagnoserTests.cs
+5-3
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ public void MemoryDiagnoserIsAccurate(IToolchain toolchain)
70
70
});
71
71
}
72
72
73
-
[FactDotNetCoreOnly("We don't want to test NativeAOT twice (for .NET Framework 4.6.2 and .NET 7.0)")]
73
+
[FactEnvSpecific("We don't want to test NativeAOT twice (for .NET Framework 4.6.2 and .NET 7.0)",EnvRequirement.DotNetCoreOnly)]
74
74
publicvoidMemoryDiagnoserSupportsNativeAOT()
75
75
{
76
76
if(RuntimeInformation.IsMacOS())
@@ -82,7 +82,7 @@ public void MemoryDiagnoserSupportsNativeAOT()
82
82
.ToToolchain());
83
83
}
84
84
85
-
[FactDotNetCoreOnly("We don't want to test MonoVM twice (for .NET Framework 4.6.2 and .NET 7.0)")]
85
+
[FactEnvSpecific("We don't want to test MonoVM twice (for .NET Framework 4.6.2 and .NET 7.0)",EnvRequirement.DotNetCoreOnly)]
86
86
publicvoidMemoryDiagnoserSupportsModernMono()
87
87
{
88
88
MemoryDiagnoserIsAccurate(MonoToolchain.Mono70);
@@ -263,7 +263,9 @@ public void Allocate()
263
263
}
264
264
}
265
265
266
-
[TheoryNetCore30(".NET Core 3.0 preview6+ exposes a GC.GetTotalAllocatedBytes method which makes it possible to work"),MemberData(nameof(GetToolchains))]
266
+
[TheoryEnvSpecific(".NET Core 3.0 preview6+ exposes a GC.GetTotalAllocatedBytes method which makes it possible to work",
[FactDotNetCoreOnly("It's impossible to reliably detect the version of NativeAOT if the process is not a .NET Core or NativeAOT process")]
18
+
[FactEnvSpecific("It's impossible to reliably detect the version of NativeAOT if the process is not a .NET Core or NativeAOT process",EnvRequirement.DotNetCoreOnly)]
19
19
publicvoidLatestNativeAotVersionIsSupported()
20
20
{
21
21
if(!RuntimeInformation.Is64BitPlatform())// NativeAOT does not support 32bit yet
[FactDotNetCoreOnly("When CommandLineParser wants to display help, it tries to get the Title of the Entry Assembly which is an xunit runner, which has no Title and fails..")]
113
+
[FactEnvSpecific(
114
+
"When CommandLineParser wants to display help, it tries to get the Title of the Entry Assembly which is an xunit runner, which has no Title and fails..",
0 commit comments