Creating a test project

Let's take a look at the following steps to create a test project:

  1. Open the TextEvaluation project in Visual Studio
  2. 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:
  1. 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 ...

Get Serverless computing in Azure with .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.