Unit Testing: MSTest, xUnit, and nUnit Training Course

Course Code

unittest

Duration

21 hours (usually 3 days including breaks)

Requirements

  • An understanding of Dot Net basics

Audience

  • Software Testers

Overview

MSTest, xUnit, and nUnit are unit testing frameworks. MSTest is known for its integration-testing and its the official unit testing framework created by Microsoft. nUnit is attributed to Dot Net unit testing. xUnit is specialized in 32-bit and 64-bit processing and is another framework attributed to Dot Net.

This instructor-led, live training (online or onsite) is aimed at software tester who wish to unit test code functionality using MSTest, xUnit, and nUnit.

By the end of this training, participants will be able to:

  • Create unit tests using MSTest to test software applications.
  • Display test results with CodeLens.
  • Understand the different testing tools for Test-Driven Development.

Format of the Course

  • Interactive lecture and discussion.
  • Lots of exercises and practice.
  • Hands-on implementation in a live-lab environment.

Course Customization Options

  • To request a customized training for this course, please contact us to arrange.

Course Outline

Introduction

Unit Testing Frameworks

  • What are unit tests?
  • The fundamentals of a unit testing framework

Test-Driven Development

  • Refactoring overview
  • The different approaches to testing

Preparing the Development Environment

  • Installing and configuring Visual Studio Code
  • Installing and configuring .Net
  • Installing and configuring nUnit

Writing a Unit Testing Framework

  • Creating a test
  • Applying more tests
  • Refactoring the test runner
  • Working with the assert class
  • Reflecting to call methods
  • Using a naming convention

Visual Studio Code Integration

  • Creating a project with templates
  • Creating a project with a unit testing framework
  • Running the test
  • Optimizing code
  • Testing parameters

nUnit

  • Writing and running a test unit
  • Using constraints
  • Testing parameters

xUnit

  • Writing and running a unit test
  • Testing parameters with InLine
  • Testing multiple parameters
  • Using a custom class member

Advanced Optimizations

  • Grouping tests
  • Working with test attributes
  • Customizing with playlists
  • Debugging tests
  • Using test menus
  • Viewing results with CodeLens
  • Using Code Coverage
  • Running tests with MSTest

Summary and Conclusion

Testimonials

★★★★★
★★★★★

Related Categories

Related Courses

Course Discounts

Course Discounts Newsletter

We respect the privacy of your email address. We will not pass on or sell your address to others.
You can always change your preferences or unsubscribe completely.

Some of our clients

This site in other countries/regions