Let's take a look at the following steps to create a test project:
- Open the TextEvaluation project in Visual Studio
- To create a test project, and autogenerate tests for a class, you can right-click on the class name, and choose Create Unit Tests. The following dialog will open, allowing you to choose the target test project and the naming approach:
- The auto generate functionality will generate code similar to the following:
using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using TextEvaluation; namespace TextEvaluation_Tests { [TestClass()] public class AverageResults_Tests { [TestMethod()] public ...