Unit Testing in Visual Studio 2017

This course has been superseded

We suggest the following instead:
Unit Testing in Visual Studio 2019

Course Description

This two-day, instructor-led course provides students with the knowledge and skills to effectively use Visual Studio 2017 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. This course also introduces other popular unit testing tools and techniques, and demonstrates how they integrate with Visual Studio and your development lifecycle.
2 days
Contact us for pricing

Prerequisites

Before attending this course, a student should have experience or familiarity with:
The Visual C# language
Visual Studio 2013, 2015, or 2017
Writing, debugging, and maintaining code
Application Lifecycle Management basics
Building a high-quality software product
Their organization’s development lifecycle

Unit Testing in .NET

The role of the developer
Unit tests explained
.NET unit testing frameworks
MSTest, NUnit, xUnit.net, and others
The anatomy of a unit test
Writing your first unit test

Unit Testing in Visual Studio

Testing support in Visual Studio
Test projects
Test Explorer and other windows
Unit testing in Visual Studio
Running tests
Managing test results
Managing a large number of tests

Test-Driven Development (TDD)

TDD overview and benefits
Practicing TDD within Visual Studio
Refactoring
Using CodeLens to support TDD and refactoring
Working with legacy code

Writing Good Unit Tests

Know your code
Path testing (i.e. sad path)
Right BICEP
Testing for expected exceptions
Maintaining high-quality test code
Unit test naming conventions (e.g. BDD)
Organizing unit tests

Leveraging Visual Studio

Code coverage
Using code coverage as a metric
Data-driven unit tests
Continuous testing in Visual Studio
Concurrent testing using Live Unit Testing
Concurrent testing using NCrunch

Testing Difficult Code

The need to isolate code under test
Doubles (dummies, stubs, fakes, and mocks)
Microsoft Fakes framework (stubs and shims)
Mocking frameworks (Rhino Mocks)
Profiling slow running unit tests
Using IntelliTest with legacy code

Microsoft Visual StudioTDDTest Driven DevelopmentVisual Studio 2017