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


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