In this section, we will show you how to view and navigate the results from live test execution using the Test Explorer
and the tool tip in the Visual Studio editor.
You will need to have the Visual Studio 2017 Enterprise edition installed on your machine to execute this recipe. You can install a licensed enterprise edition from https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Enterprise&rel=15.
- Open Visual Studio and create a new C# class library project, say
ClassLibrary
. - Replace the existing code in the source file
Class1.cs
with the code in attached sampleClassLibrary\Class1.cs
. - Add a C# unit test project, say
UnitTestProject
, to the solution and add a reference toClassLibrary
to this project. - Open the
NuGet Package Manager for the project an
d update the existing NuGet package references forMSTest.TestAdapter
andMSTest.TestFramework
to latest stable version (later than)1.1.17
- Replace the...