diff --git a/build.cake b/build.cake index 6ef00fb8f..112b0125e 100644 --- a/build.cake +++ b/build.cake @@ -799,8 +799,8 @@ Task("TestEngineCore") .Description("Builds and tests the engine core assembly") .IsDependentOn("TestNet20EngineCore") .IsDependentOn("TestNetStandard20EngineCore") - .IsDependentOn("TestNetCore31EngineCore"); -// .IsDependentOn("TestNet50EngineCore"); + .IsDependentOn("TestNetCore31EngineCore") + .IsDependentOn("TestNet50EngineCore"); Task("TestEngine") .Description("Builds and tests the engine assembly") diff --git a/src/NUnitEngine/nunit.engine.core.tests/Services/DriverServiceTests.cs b/src/NUnitEngine/nunit.engine.core.tests/Services/DriverServiceTests.cs index e45f27349..811b769d6 100644 --- a/src/NUnitEngine/nunit.engine.core.tests/Services/DriverServiceTests.cs +++ b/src/NUnitEngine/nunit.engine.core.tests/Services/DriverServiceTests.cs @@ -31,7 +31,11 @@ public void ServiceIsStarted() } -#if NETCOREAPP3_1_OR_GREATER +#if NET5_0_OR_GREATER + [TestCase("mock-assembly.dll", false, typeof(NUnitNetCore31Driver))] + [TestCase("mock-assembly.dll", true, typeof(NUnitNetCore31Driver))] + //[TestCase("notest-assembly.dll", false, typeof(NUnitNetCore31Driver))] +#elif NETCOREAPP3_1 [TestCase("mock-assembly.dll", false, typeof(NUnitNetCore31Driver))] [TestCase("mock-assembly.dll", true, typeof(NUnitNetCore31Driver))] [TestCase("notest-assembly.dll", false, typeof(NUnitNetCore31Driver))] @@ -49,8 +53,10 @@ public void ServiceIsStarted() [TestCase("junk.dll", false, typeof(InvalidAssemblyFrameworkDriver))] [TestCase("junk.dll", true, typeof(InvalidAssemblyFrameworkDriver))] [TestCase("nunit.engine.dll", false, typeof(InvalidAssemblyFrameworkDriver))] +#if !NET5_0 // Not yet working [TestCase("nunit.engine.dll", true, typeof(SkippedAssemblyFrameworkDriver))] [TestCase("notest-assembly.dll", true, typeof(SkippedAssemblyFrameworkDriver))] +#endif public void CorrectDriverIsUsed(string fileName, bool skipNonTestAssemblies, Type expectedType) { var driver = _driverService.GetDriver(AppDomain.CurrentDomain, Path.Combine(TestContext.CurrentContext.TestDirectory, fileName), null, skipNonTestAssemblies);