Unit Testing in Visual Studio

Unlock proficiency in .NET development with our Unit Testing in Visual Studio course, designed for software professionals seeking expertise in test-driven development and high-quality unit testing practices.

Course Thumbnail

Essential Skills Gained

Checkmark

Design effective unit tests in Visual Studio using .NET frameworks.

Checkmark

Implement test-driven development strategies to improve code quality.

Checkmark

Understand and apply various unit testing tools and techniques.

Checkmark

Leverage Visual Studio features for continuous testing and code coverage.

Format

  • Instructor-led
  • 2 days with lectures and hands-on labs.

Audience

  • Software Developers
  • QA Engineers
  • Application Lifecycle Managers
  • Development Team Leads

Description

This two-day, instructor-led course provides students with the knowledge and skills to effectively use Visual Studio to design, write, and run high-quality .NET unit tests. The course focuses on the applicable features and capabilities of Visual Studio as it relates to unit testing and Test-Driven Development (TDD). This course also introduces other, popular unit testing tools and techniques, and demonstrates how they integrate with Visual Studio and your development lifecycle.

Calendar icon

Upcoming Course Dates

No upcoming dates. Please check back later.

Course Outline

Download PDF

Module 1: Unit Testing in .NET

  1. The role of the developer

  2. Unit tests explained

  3. .NET unit testing frameworks

  4. MSTest, NUnit, xUnit.net, and others

  5. The anatomy of a unit test

  6. Writing your first unit test

Module 2: Unit Testing in Visual Studio

  1. Testing support in Visual Studio

  2. Test projects

  3. Test Explorer and other windows

  4. Unit testing in Visual Studio

  5. Running tests

  6. Managing test results

  7. Managing a large number of tests

Module 3: Test-Driven Development (TDD)

  1. TDD overview and benefits

  2. Practicing TDD within Visual Studio

  3. Refactoring

  4. Using CodeLens to support TDD and refactoring

  5. Working with legacy code

Module 4: Writing Good Unit Tests

  1. Know your code

  2. Path testing (i.e. sad path)

  3. Right BICEP

  4. Testing for expected exceptions

  5. Maintaining high-quality test code

  6. Unit test naming conventions (e.g. BDD)

  7. Organizing unit tests

Module 5: Leveraging Visual Studio

  1. Code coverage

  2. Using code coverage as a metric

  3. Data-driven unit tests

  4. Continuous testing in Visual Studio

  5. Concurrent testing using Live Unit Testing

  6. Concurrent testing using NCrunch

Module 6: Testing Difficult Code

  1. The need to isolate code under test

  2. Doubles (dummies, stubs, fakes, and mocks)

  3. Microsoft Fakes framework (stubs and shims)

  4. Mocking frameworks (Rhino Mocks)

  5. Profiling slow running unit tests

  6. Using IntelliTest with legacy code

Your Team has Unique Training Needs.

Your team deserves training as unique as they are.

Let us tailor the course to your needs at no extra cost.