Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test to confirm issue 1383 is fixed #1482

Merged
merged 1 commit into from
Sep 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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");
}
}
}
Loading