Skip to content

Commit

Permalink
Merge pull request #1482 from nunit/issue-1383
Browse files Browse the repository at this point in the history
Add test to confirm issue 1383 is fixed
  • Loading branch information
CharliePoole authored Sep 15, 2024
2 parents 3f10f67 + 04af472 commit d22ffe9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-tests.cake
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ 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") }
}));

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") }
}));

Expand Down
2 changes: 1 addition & 1 deletion src/NUnitConsole/nunit3-console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
7 changes: 7 additions & 0 deletions src/TestData/aspnetcore-test/AspNetCoreTest.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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");
}
}
}

0 comments on commit d22ffe9

Please sign in to comment.