![]() ![]() Throw new NotImplementedException("Not implemented.") Replace the code in PrimeService.cs with the following code: using System The new class library will contain the code to be tested. The dotnet new classlib command creates a new class library project in the PrimeService folder. Run the following command: dotnet new classlib -o PrimeService The dotnet new sln command creates a new solution in the unit-testing-using-dotnet-test directory.Ĭhange directory to the unit-testing-using-dotnet-test folder. Run the following command: dotnet new sln -o unit-testing-using-dotnet-test See Commands to create test solution for instructions to create the test solution in one step. The following instructions provide the steps to create the test solution. The completed solution has the following directory structure: /unit-testing-using-dotnet-test In this section, a solution is created that contains the source and test projects. ![]() For download instructions, see Samples and Tutorials. To follow the tutorial using a pre-built solution, view or download the sample code. This tutorial shows how to build a solution containing a unit test project and source code project. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |