From 923105c8ca782dd3fae393cc697c4eefa64e8b0c Mon Sep 17 00:00:00 2001 From: Terje Sandstrom Date: Sun, 3 Dec 2023 21:40:03 +0100 Subject: [PATCH 1/9] Updated misc articles to fix up version numbers, and update text to match latest versions of NUnit --- .../dotnet-core-and-dotnet-standard.md | 29 +++++++++++-------- .../nunit/getting-started/upgrading.md | 18 ++++++++---- .../nunit/release-notes/breaking-changes.md | 2 ++ .../assertions/assertion-models/constraint.md | 14 ++++----- .../writing-tests/assertions/assertions.md | 5 ++-- .../assertions/multiple-asserts.md | 2 +- 6 files changed, 41 insertions(+), 29 deletions(-) diff --git a/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md b/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md index d2f073bee..251599a74 100644 --- a/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md +++ b/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md @@ -1,14 +1,14 @@ -# .NET Core and .NET Standard +# .NET Core More information and getting started tutorials are available for NUnit and .NET Core targeting [C#](https://docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-with-nunit), [F#](https://docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-fsharp-with-nunit) and [Visual Basic](https://docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-visual-basic-with-nunit) in the .NET Core -documentation's [Unit Testing in .NET Core and .NET Standard](https://docs.microsoft.com/en-us/dotnet/core/testing/) +documentation's [Unit Testing in .NET Core](https://docs.microsoft.com/en-us/dotnet/core/testing/) page. The other information on this page is older documentation. If you follow the instructions in the [Installation -section](xref:installation) your project will work with .NET Core and .NET Standard. +section](xref:installation) your project will work with .NET Core. The test projects have to be .NET (Core) or .NET Framework; .NET Standard can't be used as a test project, since it can't be run on its own, but any code in a .NET Standard library can be tested from a .NET (Core) or .NET Framework test @@ -16,7 +16,7 @@ project. ## TL;DR -Adding the adapter and `Microsoft.NET.Test.Sdk` version `17.0.0` or greater to your NUnit test projects will also enable +Adding the adapter and `Microsoft.NET.Test.Sdk` version `17.8.0` or greater to your NUnit test projects will also enable the `dotnet test` command for .NET Core projects. Any tests using the new style CSPROJ format, either .NET Core or .NET 4.x, need to add a `PackageReference` to the NuGet @@ -27,10 +27,10 @@ the necessary references. ```xml - - - - + + + + ``` @@ -80,19 +80,24 @@ Framework. This limitation is the same for all test adapters including xUnit and MSTest2. -#### My tests aren't showing up in Visual Studio 2017 or later +#### My tests aren't showing up in Visual Studio 2022 or later * Are you using the NuGet adapter package? -* Are you using version 4.1.0 or newer of the NuGet package? +* Are you using version 4.5.0 or newer of the NuGet package? * Do your tests target .NET Core or the full .NET Framework? (see above) * Have you added a Package Reference to `Microsoft.NET.Test.Sdk`? * Have you restarted Visual Studio? It is still a bit temperamental. +* Are you doing integration testing with Asp.Net Core `WebApplicationFactory` and using minimal API, and it complains about missing `testhost.deps.json`? Then you're accessing the wrong Program class in your WebApplicationFactory. Fix it by adding a code line at the end of the `Program.cs` file, and verify that your WebApplicationFactory is actually using this Program class: + +```csharp + public partial class Program { } +``` #### My tests multi-target .NET Core and .NET Framework, why can't I run both in Visual Studio -This is a limitation of Visual Studio, hopefully it will be fixed in a future release. +This was a limitation in earlier versions of Visual Studio, but is fixed in Visual Studio 2022. -Meanwhile, you can run specific tests using the `--framework` command line option of [dotnet +IF you must run an earlier version and have this issue, you can run specific tests using the `--framework` command line option of [dotnet test](https://docs.microsoft.com/en-ca/dotnet/core/tools/dotnet-test?tabs=netcore2x) ## How do I produce a test results file diff --git a/docs/articles/nunit/getting-started/upgrading.md b/docs/articles/nunit/getting-started/upgrading.md index ed2109fdc..b9a8f84c3 100644 --- a/docs/articles/nunit/getting-started/upgrading.md +++ b/docs/articles/nunit/getting-started/upgrading.md @@ -1,15 +1,23 @@ # Upgrading -This document assumes you are upgrading to NUnit 3.0 from NUnit 2.6 or later. While it's possible to upgrade from an +## Upgrading from NUnit 3.X to NUnit 4.X + +See the [Migration Guide](xref:migrationguidance) for information on upgrading from NUnit 3.X to NUnit 4.X. + +Also see the [Release Notes for version 4.0.0](https://docs.nunit.org/articles/nunit/release-notes/framework.html#nunit-400---november-26-2023) for information on breaking and other changes to see if any of these may affect your tests. + +## Upgrading from NUnit 2.6.4 to NUnit 3.0 + +This section assumes you are upgrading to NUnit 3.0 from NUnit 2.6 or later. While it's possible to upgrade from an earlier version, you will need to take into account many additional changes in NUnit, which are not described here. If this is your situation, be sure to check the release notes for earlier versions of NUnit as well. -## Review Breaking Changes +### Review Breaking Changes The [Breaking Changes](xref:breakingchanges) page lists missing and changed functionality in NUnit 3.0. You should review this page to see which items are likely to affect your own tests. -## Update Your Code +### Update Your Code In many cases, the items being removed have been deprecated for some time and an alternate approach may already be available in your current release of NUnit. If that is the case, it will probably save you time and effort if you modify @@ -20,14 +28,14 @@ For example, NUnit 3.0 no longer supports **ExpectedExceptionAttribute**. Howeve your tests and use one of the alternatives instead, you can verify that they work in your present environment and they will continue to work after conversion.** -## Switch to NUnit 3.0 +### Switch to NUnit 3.0 Remove references to your old version of NUnit and replace them with references to NUnit 3.0. In the case of NUnitLite executable tests, you will need to reference both the nunit.framework and NUnitLite assemblies. Compile your code. It's possible that you will find compiler errors due to breaking changes in NUnit 3.0, which you missed in the prior step. Make the necessary changes until it all works. -## Make the Tests Pass +### Make the Tests Pass Hopefully, you aren't converting tests that were not passing when you started! If all goes well, they will continue to pass under NUnit 3.0. If not, investigate each case and make necessary changes. If something isn't working as diff --git a/docs/articles/nunit/release-notes/breaking-changes.md b/docs/articles/nunit/release-notes/breaking-changes.md index aa1059969..8eda7003a 100644 --- a/docs/articles/nunit/release-notes/breaking-changes.md +++ b/docs/articles/nunit/release-notes/breaking-changes.md @@ -6,6 +6,8 @@ uid: breakingchanges ## NUnit 4.0 +See the [Migration Guide](https://docs.nunit.org/articles/nunit/release-notes/Nunit4.0-MigrationGuide.html) for moving your tests from NUnit 3.x to NUnit 4.0 if you are using any of the following features: + * The [Classic Asserts](../writing-tests/assertions/assertion-models/classic.md) have been moved to a separate library and their namespace and their class name were renamed to: `NUnit.Framework.Legacy.ClassicAssert`. * The standalone assert classes have also been moved to the `NUnit.Framework.Legacy` namespace. These classes are: diff --git a/docs/articles/nunit/writing-tests/assertions/assertion-models/constraint.md b/docs/articles/nunit/writing-tests/assertions/assertion-models/constraint.md index 324b271fa..cb6c2352b 100644 --- a/docs/articles/nunit/writing-tests/assertions/assertion-models/constraint.md +++ b/docs/articles/nunit/writing-tests/assertions/assertion-models/constraint.md @@ -25,28 +25,26 @@ overloads... ```csharp Assert.That(bool condition); -Assert.That(bool condition, string message, params object[] params); +Assert.That(bool condition, string message); Assert.That(bool condition, Func getExceptionMessage); Assert.That(Func condition); -Assert.That(Func condition, string message, params object[] params); +Assert.That(Func condition, string message); Assert.That(Func condition, Func getExceptionMessage); Assert.That(ActualValueDelegate del, IResolveConstraint constraint) Assert.That(ActualValueDelegate del, IResolveConstraint constraint, - string message, object[] params) + string message) Assert.That(ActualValueDelegate del, IResolveConstraint expr, Func getExceptionMessage) Assert.That(TActual actual, IResolveConstraint constraint) -Assert.That(TActual actual, IResolveConstraint constraint, string message, - params object[] params) +Assert.That(TActual actual, IResolveConstraint constraint, string message) Assert.That(TActual actual, IResolveConstraint expression, Func getExceptionMessage) Assert.That(TestDelegate del, IResolveConstraint constraint) -Assert.That(TestDelegate code, IResolveConstraint constraint, string message, - params object[] args) +Assert.That(TestDelegate code, IResolveConstraint constraint, string message) Assert.That(TestDelegate code, IResolveConstraint constraint, Func getExceptionMessage) ``` @@ -58,7 +56,7 @@ For overloads taking a constraint, the argument must be an object implementing t which supports performing a test on an actual value and generating appropriate messages. This interface is described in more detail under [Custom Constraints](xref:customconstraints). -NUnit provides a number of constraint classes similar to the **EqualConstraint** used in the example above. Generally, +NUnit provides a number of constraint classes similar to the **EqualConstraint** used in the examples above. Generally, these classes may be used directly or through a syntax helper. The valid forms are described on the pages related to each constraint. diff --git a/docs/articles/nunit/writing-tests/assertions/assertions.md b/docs/articles/nunit/writing-tests/assertions/assertions.md index a9f3ef472..05a9ae414 100644 --- a/docs/articles/nunit/writing-tests/assertions/assertions.md +++ b/docs/articles/nunit/writing-tests/assertions/assertions.md @@ -35,14 +35,13 @@ approach have all been implemented internally using constraints. For example... ### Some notes on the Classic/Legacy asserts The classic/legacy asserts, like `ClassicAssert.AreEqual`, have now been moved into its own project (namespace), and -will later be released as a separate package. They are now in the namespace `NUnit.Framework.Legacy`, and the `Assert` +may later be released as a separate package. They are now in the namespace `NUnit.Framework.Legacy`, and the `Assert` have been renamed to `ClassicAssert`. If you're upgrading from NUnit 3.X to NUnit 4, you need to add a using for `NUnit.Framework.Legacy` to your test classes, and rename all classic asserts from `Assert` to `ClassicAssert`. -You *can* freely mix the constraint model assertions and the classic asserts in the same test class, but we don't -recommend it. +You *can* freely mix the constraint model assertions and the classic asserts in the same test class. All assertions in the `ClassicAssert` class are rerouting to use the constraint model. diff --git a/docs/articles/nunit/writing-tests/assertions/multiple-asserts.md b/docs/articles/nunit/writing-tests/assertions/multiple-asserts.md index 10d9be31c..f73eb8744 100644 --- a/docs/articles/nunit/writing-tests/assertions/multiple-asserts.md +++ b/docs/articles/nunit/writing-tests/assertions/multiple-asserts.md @@ -54,7 +54,7 @@ end of the block if any failures were encountered, but would continue otherwise. Multiple assertion failures per test are stored in the representation of the test result using new XML elements, which are not recognized by older runners. The following runners are known to support display of the new elements: -* NUnit 3 Visual Studio Adapter 3.7++ (Used by Visual Studio and `dotnet test`) +* NUnit3 Visual Studio Adapter 3.7++ (Used by Visual Studio and `dotnet test`) * NUnit Console Runner 3.6++ #### Compatibility From e2476a1b6ca9cdb37baff6768ef68b0c6df05826 Mon Sep 17 00:00:00 2001 From: Terje Sandstrom Date: Sun, 3 Dec 2023 21:59:48 +0100 Subject: [PATCH 2/9] fixing line length issues --- .../getting-started/dotnet-core-and-dotnet-standard.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md b/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md index 251599a74..32cde26ed 100644 --- a/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md +++ b/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md @@ -1,3 +1,5 @@ + + # .NET Core More information and getting started tutorials are available for NUnit and .NET Core targeting @@ -87,7 +89,10 @@ This limitation is the same for all test adapters including xUnit and MSTest2. * Do your tests target .NET Core or the full .NET Framework? (see above) * Have you added a Package Reference to `Microsoft.NET.Test.Sdk`? * Have you restarted Visual Studio? It is still a bit temperamental. -* Are you doing integration testing with Asp.Net Core `WebApplicationFactory` and using minimal API, and it complains about missing `testhost.deps.json`? Then you're accessing the wrong Program class in your WebApplicationFactory. Fix it by adding a code line at the end of the `Program.cs` file, and verify that your WebApplicationFactory is actually using this Program class: +* Are you doing integration testing with Asp.Net Core `WebApplicationFactory` and using minimal API, and it complains + about missing `testhost.deps.json`? Then you're accessing the wrong Program class in your WebApplicationFactory. Fix + it by adding a code line at the end of the `Program.cs` file, and verify that your WebApplicationFactory is actually + using this Program class: ```csharp public partial class Program { } From 47fa065647b582dd1cdc656b54c8368bc95768eb Mon Sep 17 00:00:00 2001 From: Terje Sandstrom Date: Sun, 3 Dec 2023 22:07:50 +0100 Subject: [PATCH 3/9] fixing more line length issues --- docs/articles/nunit/getting-started/upgrading.md | 2 ++ docs/articles/nunit/release-notes/breaking-changes.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/articles/nunit/getting-started/upgrading.md b/docs/articles/nunit/getting-started/upgrading.md index b9a8f84c3..37bb33ba7 100644 --- a/docs/articles/nunit/getting-started/upgrading.md +++ b/docs/articles/nunit/getting-started/upgrading.md @@ -1,3 +1,5 @@ + + # Upgrading ## Upgrading from NUnit 3.X to NUnit 4.X diff --git a/docs/articles/nunit/release-notes/breaking-changes.md b/docs/articles/nunit/release-notes/breaking-changes.md index 8eda7003a..cba68e366 100644 --- a/docs/articles/nunit/release-notes/breaking-changes.md +++ b/docs/articles/nunit/release-notes/breaking-changes.md @@ -2,6 +2,8 @@ uid: breakingchanges --- + + # Breaking Changes ## NUnit 4.0 From 33d99a3322923da3ca0de9de75ab3b1a7f28f80e Mon Sep 17 00:00:00 2001 From: Terje Sandstrom Date: Sun, 3 Dec 2023 23:30:07 +0100 Subject: [PATCH 4/9] Update docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md Co-authored-by: Sean Killeen --- .../nunit/getting-started/dotnet-core-and-dotnet-standard.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md b/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md index 32cde26ed..0cb6ccb2c 100644 --- a/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md +++ b/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md @@ -102,7 +102,7 @@ This limitation is the same for all test adapters including xUnit and MSTest2. This was a limitation in earlier versions of Visual Studio, but is fixed in Visual Studio 2022. -IF you must run an earlier version and have this issue, you can run specific tests using the `--framework` command line option of [dotnet +_If_ you must run an earlier version and have this issue, you can run specific tests using the `--framework` command line option of [dotnet test](https://docs.microsoft.com/en-ca/dotnet/core/tools/dotnet-test?tabs=netcore2x) ## How do I produce a test results file From 0b1849990f6ede23bf959316b921573e2a2a3e5f Mon Sep 17 00:00:00 2001 From: Terje Sandstrom Date: Sun, 3 Dec 2023 23:30:19 +0100 Subject: [PATCH 5/9] Update docs/articles/nunit/getting-started/upgrading.md Co-authored-by: Sean Killeen --- docs/articles/nunit/getting-started/upgrading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/articles/nunit/getting-started/upgrading.md b/docs/articles/nunit/getting-started/upgrading.md index 37bb33ba7..6f87f35e3 100644 --- a/docs/articles/nunit/getting-started/upgrading.md +++ b/docs/articles/nunit/getting-started/upgrading.md @@ -4,7 +4,7 @@ ## Upgrading from NUnit 3.X to NUnit 4.X -See the [Migration Guide](xref:migrationguidance) for information on upgrading from NUnit 3.X to NUnit 4.X. +See the [Migration Guide](xref:migrationguidance) for information on upgrading from NUnit 3.x to NUnit 4.x. Also see the [Release Notes for version 4.0.0](https://docs.nunit.org/articles/nunit/release-notes/framework.html#nunit-400---november-26-2023) for information on breaking and other changes to see if any of these may affect your tests. From 1d7674c75e46857b7c2bce662f3494f455e1f801 Mon Sep 17 00:00:00 2001 From: "Terje Sandstrom (AAD)" Date: Sun, 3 Dec 2023 23:33:21 +0100 Subject: [PATCH 6/9] update --- docs/articles/nunit/getting-started/upgrading.md | 5 +++-- docs/articles/nunit/release-notes/breaking-changes.md | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/articles/nunit/getting-started/upgrading.md b/docs/articles/nunit/getting-started/upgrading.md index 37bb33ba7..1d3fb93cf 100644 --- a/docs/articles/nunit/getting-started/upgrading.md +++ b/docs/articles/nunit/getting-started/upgrading.md @@ -1,4 +1,3 @@ - # Upgrading @@ -6,7 +5,7 @@ See the [Migration Guide](xref:migrationguidance) for information on upgrading from NUnit 3.X to NUnit 4.X. -Also see the [Release Notes for version 4.0.0](https://docs.nunit.org/articles/nunit/release-notes/framework.html#nunit-400---november-26-2023) for information on breaking and other changes to see if any of these may affect your tests. +Also see the [Release Notes for version 4.0.0][def] for information on breaking and other changes to see if any of these may affect your tests. ## Upgrading from NUnit 2.6.4 to NUnit 3.0 @@ -42,3 +41,5 @@ Make the necessary changes until it all works. Hopefully, you aren't converting tests that were not passing when you started! If all goes well, they will continue to pass under NUnit 3.0. If not, investigate each case and make necessary changes. If something isn't working as advertised, please let us know. + +[def]: https://docs.nunit.org/articles/nunit/release-notes/framework.html#nunit-400---november-26-2023 diff --git a/docs/articles/nunit/release-notes/breaking-changes.md b/docs/articles/nunit/release-notes/breaking-changes.md index cba68e366..5f9d626e7 100644 --- a/docs/articles/nunit/release-notes/breaking-changes.md +++ b/docs/articles/nunit/release-notes/breaking-changes.md @@ -8,9 +8,9 @@ uid: breakingchanges ## NUnit 4.0 -See the [Migration Guide](https://docs.nunit.org/articles/nunit/release-notes/Nunit4.0-MigrationGuide.html) for moving your tests from NUnit 3.x to NUnit 4.0 if you are using any of the following features: +See the [Migration Guide](xref:migrationguidance) for moving your tests from NUnit 3.x to NUnit 4.0 if you are using any of the following features: -* The [Classic Asserts](../writing-tests/assertions/assertion-models/classic.md) have been moved to a separate library +* The [Classic Asserts][def] have been moved to a separate library and their namespace and their class name were renamed to: `NUnit.Framework.Legacy.ClassicAssert`. * The standalone assert classes have also been moved to the `NUnit.Framework.Legacy` namespace. These classes are: * [CollectionAssert](../writing-tests/assertions/classic-assertions/Collection-Assert.md) @@ -158,3 +158,5 @@ runner supports. | `--noshadow` | Disable shadow copy | No longer supported. The console runner now disables shadow copy by default. use `--shadowcopy` on the command-line to turn it on. | | `--nothread` | Disable use of a separate thread for tests | No longer supported. | | `--nodots` | Do not display dots as a progress indicator | No longer supported. | + +[def]: ../writing-tests/assertions/assertion-models/classic.md \ No newline at end of file From 1042cf4308878e5b7b9de621d7e54ca06a2f5ad5 Mon Sep 17 00:00:00 2001 From: "Terje Sandstrom (AAD)" Date: Mon, 4 Dec 2023 00:29:15 +0100 Subject: [PATCH 7/9] update --- docs/articles/nunit/getting-started/upgrading.md | 1 - docs/articles/nunit/release-notes/breaking-changes.md | 2 -- 2 files changed, 3 deletions(-) diff --git a/docs/articles/nunit/getting-started/upgrading.md b/docs/articles/nunit/getting-started/upgrading.md index ef96967e1..e8a618b06 100644 --- a/docs/articles/nunit/getting-started/upgrading.md +++ b/docs/articles/nunit/getting-started/upgrading.md @@ -1,4 +1,3 @@ - # Upgrading ## Upgrading from NUnit 3.X to NUnit 4.X diff --git a/docs/articles/nunit/release-notes/breaking-changes.md b/docs/articles/nunit/release-notes/breaking-changes.md index 5f9d626e7..9fa2b1358 100644 --- a/docs/articles/nunit/release-notes/breaking-changes.md +++ b/docs/articles/nunit/release-notes/breaking-changes.md @@ -2,8 +2,6 @@ uid: breakingchanges --- - - # Breaking Changes ## NUnit 4.0 From 3d94e6c1f9d027fddf25cd7b3c1fa6135c4171bf Mon Sep 17 00:00:00 2001 From: Sean Killeen Date: Sun, 3 Dec 2023 23:38:10 +0000 Subject: [PATCH 8/9] Remove lint ignore --- .../nunit/getting-started/dotnet-core-and-dotnet-standard.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md b/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md index 0cb6ccb2c..87674a7c2 100644 --- a/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md +++ b/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md @@ -1,5 +1,3 @@ - - # .NET Core More information and getting started tutorials are available for NUnit and .NET Core targeting From 80ad1b32ba63c7a3958846a2851bb33ae85fcae9 Mon Sep 17 00:00:00 2001 From: Sean Killeen Date: Sun, 3 Dec 2023 23:39:23 +0000 Subject: [PATCH 9/9] Run re-wrap command to fix linting --- .../nunit/getting-started/dotnet-core-and-dotnet-standard.md | 4 ++-- docs/articles/nunit/getting-started/upgrading.md | 3 ++- docs/articles/nunit/release-notes/breaking-changes.md | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md b/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md index 87674a7c2..4771ad448 100644 --- a/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md +++ b/docs/articles/nunit/getting-started/dotnet-core-and-dotnet-standard.md @@ -100,8 +100,8 @@ This limitation is the same for all test adapters including xUnit and MSTest2. This was a limitation in earlier versions of Visual Studio, but is fixed in Visual Studio 2022. -_If_ you must run an earlier version and have this issue, you can run specific tests using the `--framework` command line option of [dotnet -test](https://docs.microsoft.com/en-ca/dotnet/core/tools/dotnet-test?tabs=netcore2x) +_If_ you must run an earlier version and have this issue, you can run specific tests using the `--framework` command +line option of [dotnet test](https://docs.microsoft.com/en-ca/dotnet/core/tools/dotnet-test?tabs=netcore2x) ## How do I produce a test results file diff --git a/docs/articles/nunit/getting-started/upgrading.md b/docs/articles/nunit/getting-started/upgrading.md index e8a618b06..688a0e69a 100644 --- a/docs/articles/nunit/getting-started/upgrading.md +++ b/docs/articles/nunit/getting-started/upgrading.md @@ -4,7 +4,8 @@ See the [Migration Guide](xref:migrationguidance) for information on upgrading from NUnit 3.x to NUnit 4.x. -Also see the [Release Notes for version 4.0.0][def] for information on breaking and other changes to see if any of these may affect your tests. +Also see the [Release Notes for version 4.0.0][def] for information on breaking and other changes to see if any of these +may affect your tests. ## Upgrading from NUnit 2.6.4 to NUnit 3.0 diff --git a/docs/articles/nunit/release-notes/breaking-changes.md b/docs/articles/nunit/release-notes/breaking-changes.md index 9fa2b1358..b4db374db 100644 --- a/docs/articles/nunit/release-notes/breaking-changes.md +++ b/docs/articles/nunit/release-notes/breaking-changes.md @@ -6,7 +6,8 @@ uid: breakingchanges ## NUnit 4.0 -See the [Migration Guide](xref:migrationguidance) for moving your tests from NUnit 3.x to NUnit 4.0 if you are using any of the following features: +See the [Migration Guide](xref:migrationguidance) for moving your tests from NUnit 3.x to NUnit 4.0 if you are using any +of the following features: * The [Classic Asserts][def] have been moved to a separate library and their namespace and their class name were renamed to: `NUnit.Framework.Legacy.ClassicAssert`. @@ -157,4 +158,4 @@ runner supports. | `--nothread` | Disable use of a separate thread for tests | No longer supported. | | `--nodots` | Do not display dots as a progress indicator | No longer supported. | -[def]: ../writing-tests/assertions/assertion-models/classic.md \ No newline at end of file +[def]: ../writing-tests/assertions/assertion-models/classic.md