Switch branches/tags
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
PrimeService.Tests update TFMs and package versions (#494) Dec 4, 2018
PrimeService update nunit project (#269) Aug 31, 2018
README.md sync samples to latest from dotnet-docs Mar 27, 2018
unit-testing-using-nunit.sln sync samples to latest from dotnet-docs Mar 27, 2018

README.md

Unit testing using NUnit sample

This sample is part of the unit testing tutorial for creating applications with unit tests included. See that topic for detailed steps on the code for this sample.

Key features

This sample demonstrates creating a library and writing effective unit tests that validate the features in that library. The example provides a service that indicates whether a number is prime.

Restore and test

To run the tests, navigate to the PrimeService.Tests directory and type the following commands:

dotnet restore
dotnet test

dotnet restore restores the packages of both projects. dotnet test builds both projects and runs all of the configured tests.

[!INCLUDEDotNet Restore Note]