Skip to content

Commit

Permalink
Merge pull request #798 from nunit/release40
Browse files Browse the repository at this point in the history
Release40
  • Loading branch information
OsirisTerje authored Oct 4, 2023
2 parents 0b9879f + cb4ddc3 commit ce3d1c4
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 57 deletions.
2 changes: 1 addition & 1 deletion docs/articles/nunit/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ global using NUnit.Framework;

## Adding NUnit to an existing test project

If you need to update an existing test project to use NUnit -- perhaps a .NET Standard class lib you want to convert to a test project, or adding NUnit to a project that already has XUnit or MSTest -- you can do that by adding the `ItemGroup` in the `.csproj` file above to your project file, and then the appropriate `using NUnit.Framework;` in your code.
If you need to update an existing test project to use NUnit -- perhaps a .NET class lib you want to convert to a test project, or adding NUnit to a project that already has XUnit or MSTest -- you can do that by adding the `ItemGroup` in the `.csproj` file above to your project file, and then the appropriate `using NUnit.Framework;` in your code.

Also note that multiple different test frameworks (XUnit, MSTest, NUnit) can co-exist in the same test project, preferably in different files to avoid name clashes. See [this blog post](https://devblogs.microsoft.com/devops/part-2using-traits-with-different-test-frameworks-in-the-unit-test-explorer/) for details.

Expand Down
Loading

0 comments on commit ce3d1c4

Please sign in to comment.