Unit Testing in Visual Studio 2019

26 Ratings

Course Number: VS-114

Duration: 2 days (13 hours)

Format: Live, hands-on

Visual Studio 2019 training Overview

This Unit Testing in Visual Studio 2019 training course teaches attendees how to use Visual Studio 2019 to design, write, and run high-quality .NET unit tests. Students learn how to use 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.

Note: This course can also be taught using Visual Studio 2017.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

In addition, some Microsoft courses are available as live, online classes for individuals.

Objectives

  • Work with .NET unit testing frameworks
  • Write and run unit tests and managing test results
  • Practice Test-Driven Development (TDD)
  • Write high-quality unit tests
  • Use additional unit testing features found in Visual Studio
  • Use tools and techniques for testing difficult code

Prerequisites

Before attending this course, students should have experience or familiarity with:

  • The Visual C# language
  • Visual Studio 2017 or 2019
  • Writing, debugging, and maintaining code
  • Application Lifecycle Management basics
  • Building a high-quality software product
  • Their organization’s development lifecycle

Outline

Expand All | Collapse All

Introduction
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
Advanced Unit Testing in Visual Studio
  • Code coverage
  • Using code coverage as a metric
  • Data-driven unit tests
  • Continuous testing in Visual Studio
  • 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
Conclusion

Training Materials:

All Unit Testing training students receive comprehensive courseware.

Software Requirements:

  • Visual Studio 2017 or 2019 with the latest update
  • Access to an Azure DevOps Server instance
  • Related lab files that Accelebrate would provide


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan