From 04af472c44bb2266e4e823e715f8277fdfca718f Mon Sep 17 00:00:00 2001 From: Charlie Poole Date: Sun, 15 Sep 2024 09:57:05 -0700 Subject: [PATCH] Add test to confirm issue 1383 is fixed --- package-tests.cake | 4 ++-- src/NUnitConsole/nunit3-console/Program.cs | 2 +- src/TestData/aspnetcore-test/AspNetCoreTest.cs | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/package-tests.cake b/package-tests.cake index ea7fd4bb4..dc7ff9f1c 100644 --- a/package-tests.cake +++ b/package-tests.cake @@ -150,7 +150,7 @@ StandardRunnerTests.Add(new PackageTest( 1, "Net60AspNetCoreTest", "Run test using AspNetCore targeting .NET 6.0", "net6.0/aspnetcore-test.dll", new ExpectedResult("Passed") { - Total = 2, Passed = 2, Failed = 0, Warnings = 0, Inconclusive = 0, Skipped = 0, + Total = 3, Passed = 3, Failed = 0, Warnings = 0, Inconclusive = 0, Skipped = 0, Assemblies = new ExpectedAssemblyResult[] { new ExpectedAssemblyResult("aspnetcore-test.dll", "netcore-6.0") } })); @@ -158,7 +158,7 @@ StandardRunnerTests.Add(new PackageTest( 1, "Net80AspNetCoreTest", "Run test using AspNetCore targeting .NET 8.0", "net8.0/aspnetcore-test.dll", new ExpectedResult("Passed") { - Total = 2, Passed = 2, Failed = 0, Warnings = 0, Inconclusive = 0, Skipped = 0, + Total = 3, Passed = 3, Failed = 0, Warnings = 0, Inconclusive = 0, Skipped = 0, Assemblies = new ExpectedAssemblyResult[] { new ExpectedAssemblyResult("aspnetcore-test.dll", "netcore-8.0") } })); diff --git a/src/NUnitConsole/nunit3-console/Program.cs b/src/NUnitConsole/nunit3-console/Program.cs index bc6f6bcc6..827358005 100644 --- a/src/NUnitConsole/nunit3-console/Program.cs +++ b/src/NUnitConsole/nunit3-console/Program.cs @@ -277,7 +277,7 @@ private static void WriteHelpText() OutWriter.WriteLine(" --framework Runtime of the runner is used."); OutWriter.WriteLine(" --x86 Bitness of the runner is used."); OutWriter.WriteLine(" --shadowcopy Not available."); - OutWriter.WriteLine(" --loaduserprofile Not avalable."); + OutWriter.WriteLine(" --loaduserprofile Not available."); OutWriter.WriteLine(" --agents No agents are used."); OutWriter.WriteLine(" --debug Debug in process directly."); OutWriter.WriteLine(" --pause Used for debugging agents."); diff --git a/src/TestData/aspnetcore-test/AspNetCoreTest.cs b/src/TestData/aspnetcore-test/AspNetCoreTest.cs index e4ba287b8..65cfd1422 100644 --- a/src/TestData/aspnetcore-test/AspNetCoreTest.cs +++ b/src/TestData/aspnetcore-test/AspNetCoreTest.cs @@ -1,5 +1,6 @@ // Copyright (c) Charlie Poole, Rob Prouse and Contributors. MIT License - see LICENSE.txt +using System.Reflection; using NUnit.Framework; using Microsoft.AspNetCore.Components.Forms; @@ -21,5 +22,11 @@ public void WithFramework() InputCheckbox checkbox = new InputCheckbox(); Assert.Pass(); } + + [Test] + public void LoadAspNetCore() + { + Assembly.Load("Microsoft.AspNetCore, Version=8.0.0.0, Culture=Neutral, PublicKeyToken=adb9793829ddae60"); + } } } \ No newline at end of file