.NET Framework Unit testing Adding MSTest unit testing project to an existing solution

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

  • Right click on the solution, Add new project
  • From the Test section, select an Unit Test Project
  • Pick a name for the assembly - if you are testing project Foo, the name can be Foo.Tests
  • Add a reference to the tested project in the unit test project references


Got any .NET Framework Question?