Testing the Class Libraries
Learn about creating unit tests to ensure the correctness of class libraries in the project.
We'll cover the following
Creating unit tests
Now, let’s build some unit tests to ensure the class libraries are working correctly:
Step 1: Use the preferred coding tool to add a new xUnit Test Project [C#] or xunit project named Northwind.Common.UnitTests
to the PracticalApps
workspace or solution.
Step 2: In the Northwind.Common.UnitTests
project, add a project reference to the Northwind.Common.DataContext
project for either SQLite or SQL Server, as shown highlighted in the following configuration:
Get hands-on with 1400+ tech skills courses.