From 60c3029fd6db84e2993e6a9f4d2f344c605dd2f3 Mon Sep 17 00:00:00 2001 From: Andrey Akinshin Date: Mon, 24 Jul 2023 13:21:57 +0200 Subject: [PATCH] Fix attribute usage in IntegrationTests.ManualRunning --- .../ExpectedBenchmarkResultsTests.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/BenchmarkDotNet.IntegrationTests.ManualRunning/ExpectedBenchmarkResultsTests.cs b/tests/BenchmarkDotNet.IntegrationTests.ManualRunning/ExpectedBenchmarkResultsTests.cs index e36e43e0c3..c80ca11215 100644 --- a/tests/BenchmarkDotNet.IntegrationTests.ManualRunning/ExpectedBenchmarkResultsTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests.ManualRunning/ExpectedBenchmarkResultsTests.cs @@ -84,7 +84,7 @@ public void EmptyBenchmarksReportZeroTimeAndAllocated_InProcess(Type benchmarkTy )); } - [TheoryNetCoreOnly("To not repeat tests in both full Framework and Core")] + [TheoryEnvSpecific("To not repeat tests in both Full .NET Framework and Core", EnvRequirement.DotNetCoreOnly)] [MemberData(nameof(CoreData))] public void EmptyBenchmarksReportZeroTimeAndAllocated_Core(Type benchmarkType, RuntimeMoniker runtimeMoniker) { @@ -94,7 +94,7 @@ public void EmptyBenchmarksReportZeroTimeAndAllocated_Core(Type benchmarkType, R )); } - [TheoryFullFrameworkOnly("Can only run full Framework and Mono tests from Framework host")] + [TheoryEnvSpecific("Can only run Full .NET Framework and Mono tests from Framework host", EnvRequirement.FullFrameworkOnly)] [MemberData(nameof(FrameworkData))] public void EmptyBenchmarksReportZeroTimeAndAllocated_Framework(Type benchmarkType, RuntimeMoniker runtimeMoniker) { @@ -138,7 +138,7 @@ public void DifferentSizedStructsBenchmarksReportsNonZeroTimeAndZeroAllocated_In )); } - [TheoryNetCoreOnly("To not repeat tests in both full Framework and Core")] + [TheoryEnvSpecific("To not repeat tests in both Full .NET Framework and Core", EnvRequirement.DotNetCoreOnly)] [InlineData(RuntimeMoniker.Net70)] [InlineData(RuntimeMoniker.Mono70)] public void DifferentSizedStructsBenchmarksReportsNonZeroTimeAndZeroAllocated_Core(RuntimeMoniker runtimeMoniker) @@ -149,7 +149,7 @@ public void DifferentSizedStructsBenchmarksReportsNonZeroTimeAndZeroAllocated_Co )); } - [TheoryFullFrameworkOnly("Can only run full Framework and Mono tests from Framework host")] + [TheoryEnvSpecific("Can only run Full .NET Framework and Mono tests from Framework host", EnvRequirement.FullFrameworkOnly)] [InlineData(RuntimeMoniker.Net462)] [InlineData(RuntimeMoniker.Mono)] public void DifferentSizedStructsBenchmarksReportsNonZeroTimeAndZeroAllocated_Framework(RuntimeMoniker runtimeMoniker)