C# testing in Visual Studio

Beginner
Developer
Student
Visual Studio IDE
.NET

Start testing your C# apps by using the testing tools in Visual Studio.

Learning objectives

By the end of this module, you'll be able to:

  • Create a test project, add references to product code, and write tests.
  • View, run, and debug tests in Test Explorer.
  • Sharpen your test-writing skills with Fluent Assertions, data-driven tests, and mocking.

Prerequisites

  • Ability to write C# at the beginner level, with C# concepts that include writing methods and creating projects
  • Basic familiarity with debugging an app
  • Installation of Visual Studio