Skip to content

Unit Testing Primer

This tutorial will walk you through running an existing unit test for the ModelApp. These are basic tests designed to get you comfortable using the Visual Studio Unit Testing Framework also known as MSTest. Click on this link MSTest to learn more about the MSTest framework attributes.


Overview

  • Run the basic tests, TodoTests.cs in the ModelApp.Tests Solution.
  • Write your own unit tests.

Requirements

Only requirement is to clone the repository

git clone <your_repo_url>

Note that the test solution comes with the following packages - MSTest.TestAdapter (This is an adapter that discovers and executes tests based on the MSTest Framework) - MSTest.TestFramework (This is the framework itself that implements the Attributes and the Assertions)