Course Code: unittest
Duration: 21 hours
Prerequisites:
  • 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 it's 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

Sites Published:

United Arab Emirates - Unit Testing: MSTest, xUnit, and nUnit

Qatar - Unit Testing: MSTest, xUnit, and nUnit

Egypt - Unit Testing: MSTest, xUnit, and nUnit

Saudi Arabia - Unit Testing: MSTest, xUnit, and nUnit

South Africa - Unit Testing: MSTest, xUnit, and nUnit

Brasil - Unit Testing: MSTest, xUnit, and nUnit

Canada - Unit Testing: MSTest, xUnit, and nUnit

中国 - Unit Testing: MSTest, xUnit, and nUnit

香港 - Unit Testing: MSTest, xUnit, and nUnit

澳門 - Unit Testing: MSTest, xUnit, and nUnit

台灣 - Unit Testing: MSTest, xUnit, and nUnit

USA - Unit Testing: MSTest, xUnit, and nUnit

Österreich - Unit Testing: MSTest, xUnit, and nUnit

Schweiz - Unit Testing: MSTest, xUnit, and nUnit

Deutschland - Unit Testing: MSTest, xUnit, and nUnit

Czech Republic - Unit Testing: MSTest, xUnit, and nUnit

Denmark - Unit Testing: MSTest, xUnit, and nUnit

Estonia - Unit Testing: MSTest, xUnit, and nUnit

Finland - Unit Testing: MSTest, xUnit, and nUnit

Greece - Unit Testing: MSTest, xUnit, and nUnit

Magyarország - Unit Testing: MSTest, xUnit, and nUnit

Ireland - Unit Testing: MSTest, xUnit, and nUnit

Luxembourg - Unit Testing: MSTest, xUnit, and nUnit

Latvia - Unit Testing: MSTest, xUnit, and nUnit

España - Unit Testing: MSTest, xUnit, and nUnit

Italia - Unit Testing: MSTest, xUnit, and nUnit

Lithuania - Unit Testing: MSTest, xUnit, and nUnit

Nederland - Unit Testing: MSTest, xUnit, and nUnit

Norway - Unit Testing: MSTest, xUnit, and nUnit

Portugal - Unit Testing: MSTest, xUnit, and nUnit

România - Unit Testing: MSTest, xUnit, and nUnit

Sverige - Unit Testing: MSTest, xUnit, and nUnit

Türkiye - Unit Testing: MSTest, xUnit, and nUnit

Malta - Unit Testing: MSTest, xUnit, and nUnit

Belgique - Unit Testing: MSTest, xUnit, and nUnit

France - Unit Testing: MSTest, xUnit, and nUnit

日本 - Unit Testing: MSTest, xUnit, and nUnit

Australia - Unit Testing: MSTest, xUnit, and nUnit

Malaysia - Unit Testing: MSTest, xUnit, and nUnit

New Zealand - Unit Testing: MSTest, xUnit, and nUnit

Philippines - Unit Testing: MSTest, xUnit, and nUnit

Singapore - Unit Testing: MSTest, xUnit, and nUnit

Thailand - Unit Testing: MSTest, xUnit, and nUnit

Vietnam - Unit Testing: MSTest, xUnit, and nUnit

India - Unit Testing: MSTest, xUnit, and nUnit

Argentina - Unit Testing: MSTest, xUnit, and nUnit

Chile - Unit Testing: MSTest, xUnit, and nUnit

Costa Rica - Unit Testing: MSTest, xUnit, and nUnit

Ecuador - Unit Testing: MSTest, xUnit, and nUnit

Guatemala - Unit Testing: MSTest, xUnit, and nUnit

Colombia - Unit Testing: MSTest, xUnit, and nUnit

México - Unit Testing: MSTest, xUnit, and nUnit

Panama - Unit Testing: MSTest, xUnit, and nUnit

Peru - Unit Testing: MSTest, xUnit, and nUnit

Uruguay - Unit Testing: MSTest, xUnit, and nUnit

Venezuela - Unit Testing: MSTest, xUnit, and nUnit

Polska - Unit Testing: MSTest, xUnit, and nUnit

United Kingdom - Unit Testing: MSTest, xUnit, and nUnit

South Korea - Unit Testing: MSTest, xUnit, and nUnit

Pakistan - Unit Testing: MSTest, xUnit, and nUnit

Sri Lanka - Unit Testing: MSTest, xUnit, and nUnit

Bulgaria - Unit Testing: MSTest, xUnit, and nUnit

Bolivia - Unit Testing: MSTest, xUnit, and nUnit

Indonesia - Unit Testing: MSTest, xUnit, and nUnit

Kazakhstan - Unit Testing: MSTest, xUnit, and nUnit

Moldova - Unit Testing: MSTest, xUnit, and nUnit

Morocco - Unit Testing: MSTest, xUnit, and nUnit

Tunisia - Unit Testing: MSTest, xUnit, and nUnit

Kuwait - Unit Testing: MSTest, xUnit, and nUnit

Oman - Unit Testing: MSTest, xUnit, and nUnit

Slovakia - Unit Testing: MSTest, xUnit, and nUnit

Kenya - Unit Testing: MSTest, xUnit, and nUnit

Nigeria - Unit Testing: MSTest, xUnit, and nUnit

Botswana - Unit Testing: MSTest, xUnit, and nUnit

Slovenia - Unit Testing: MSTest, xUnit, and nUnit

Croatia - Unit Testing: MSTest, xUnit, and nUnit

Serbia - Unit Testing: MSTest, xUnit, and nUnit

Bhutan - Unit Testing: MSTest, xUnit, and nUnit

Nepal - Unit Testing: MSTest, xUnit, and nUnit

Uzbekistan - Unit Testing: MSTest, xUnit, and nUnit