umiatiyah / Learn-UnitTest-NUnit

Learn Unit Test NUnit

Repository from Github https://github.comumiatiyah/Learn-UnitTest-NUnitRepository from Github https://github.comumiatiyah/Learn-UnitTest-NUnit

Learn Unit testing C# with NUnit and .NET Core

Step

  • create solution (sln)
    dotnet new sln
  • create your project
    dotnet new classlib
  • add your project to sln
    dotnet sln add PrimeService/PrimeService.csproj
  • create your project test (with NUnit)
    dotnet new nunit
  • reference your project in tests project (run command in tests project)
    dotnet add reference ../PrimeService/PrimeService.csproj 
  • add your tests project to sln
    dotnet sln add ./PrimeService.Tests/PrimeService.Tests.csproj

Source

About

Learn Unit Test NUnit


Languages

Language:C# 100.0%