Visual Studio includes a Live Unit Testing feature that allows you to see the status of passing/failing tests as you’re typing your code. This feature is only available in the Enterprise Edition of Visual Studio.
The simplest unit test usually includes three distinct steps: Arrange, Act and Assert.
Arrange: Set up the any variables and objects necessary.
Act: Call the method being tested, passing any parameters needed
Assert: Verify expected results
The unit test project should have a dependency for the app project that it’s testing.
In the test project file NetLearner.Mvc.Tests.csproj;
<ItemGroup>
<ProjectReference Include="..\NetLearner.Mvc\NetLearner.Mvc.csproj" />
</ItemGroup>