Unit Testing: MSTest, xUnit, and nUnit Training Course
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
Requirements
- An understanding of Dot Net basics
Audience
- Software Testers
Open Training Courses require 5+ participants.
Unit Testing: MSTest, xUnit, and nUnit Training Course - Booking
Unit Testing: MSTest, xUnit, and nUnit Training Course - Enquiry
Unit Testing: MSTest, xUnit, and nUnit - Consultancy Enquiry
Consultancy Enquiry
Testimonials (5)
Provided with nestjs even though it was not on the agenda
Suhail - Maldives Pension Administration Office (Pension Office)
Course - Typescript Unit Testing
I liked that I had the chance to exercise.
carmen mocanu - Nanotec Electronic Bulgaria EOOD
Course - Unit Testing with C#
Exercises were nice
Vyshnavi Iyappan - Red Embedded Consulting Sp. z o.o.
Course - Unit Testing with Python
Practical time was fun.
Pieter Hartzenberg - BMW
Course - Unit Testing with Javascript
learning the full range of test development
Silviu Avram - Hertz Europe Service Centre Limited
Course - Test Driven Development
Upcoming Courses
Related Courses
Agile Software Testing Overview
7 HoursThis course provides a brief introduction to Agile software testing. It deals with foundational test concepts, within the context of Agile (Scrum) development and uses Crispin & Gregory's (More Agile Testing, 2014) Agile Testing Quadrants model as a framework to explore contemporary principles and practices of Agile testing.
Test Driven Development
21 HoursThis instructor-led, live training in Brazil (online or onsite) is aimed at intermediate-level software developers and QA engineers who wish to adopt and master TDD principles and practices to improve code quality and development efficiency.
By the end of this training, participants will be able to:
- Understand the principles and workflow of Test-Driven Development (TDD).
- Write effective and maintainable unit tests.
- Utilize mocking frameworks to create comprehensive test scenarios.
- Apply TDD as a design tool to create robust and flexible code.
Ionic2
14 HoursThis instructor-led, live training in Brazil (online or onsite) is aimed at beginner-level to intermediate-level developers who wish to use Ionic 2 to build hybrid mobile applications.
By the end of this training, participants will be able to:
- Understand the fundamentals of Ionic 2 and its architecture.
- Build single-page and multi-page applications using Ionic 2.
- Customize apps with SCSS and third-party integrations.
- Test, deploy, and manage mobile app releases effectively.
Unit Testing with JUnit
21 HoursJUnit is a framework to write repeatable tests and do unit testing for Java language.
Unit Testing with PHPUnit
14 HoursThis instructor-led, live training in Brazil teaches participants how to write testable code in the form of testing units to facilitate the diagnosis, isolation, and resolution of bugs. The training walks participants through the creation of a work-ready, testing environment using the PHPUnit testing framework.
By the end of this training, participants will be able to:
- Distinguish between good and bad testing units.
- Read and interpret test results.
- Proactively manage and diagnose their code base to reduce bugs.
- Ensure that their code base is fit for continuous integration and deployment.
Unit Testing with Python
21 HoursIn this instructor-led, live training in Brazil, participants will learn how to use PyTest to write short, maintainable tests that are elegant, expressive and readable.
By the end of this training, participants will be able to:
- Write readable and maintainable tests without the need for boilerplate code.
- Use the fixture model to write small tests.
- Scale tests up to complex functional testing for applications, packages, and libraries.
- Understand and apply PyTest features such as hooks, assert rewriting and plug-ins.
- Reduce test times by running tests in parallel and across multiple processors.
- Run tests in a continuous integration environment, together with other utilities such as tox, mock, coverage, unittest, doctest and Selenium.
- Use Python to test non-Python applications.
Typescript Unit Testing
14 HoursTypeScript is an open source language for building enterprise Javascript applications. It is a strict superset of JavaScript that compiles to plain Javascript and brings static typing and object-oriented development to the language.
This instructor-led, live training introduces TypeScript's unit testing features and frameworks. Participants get a chance to put theory to practice by constructing a collection of unit tests that can be run against real-life applications.
Format of the Course
- Interactive lecture and discussion.
- Lots of exercises and practice.
- Hands-on implementation in a live-lab environment.
Course Customization Options
- This course will focus on the frameworks that can be used to unit test a Javascript or Typescript application (Jasmine, Mocha, Jest, Chai, etc.).
- UI frameworks such as React are optional and can be covered if desired.
- To request a customized training for this course, please contact us to arrange.
Unit Testing with C
35 HoursThis instructor-led, live training in Brazil (online or onsite) is aimed at software testers who wish to use C programming to create unit tests for C code.
By the end of this training, participants will be able to:
- Use unit testing frameworks in C to produce unit tests.
- Script custom C unit tests and add them to a call list.
- Simplify the process of debugging and refactoring code with test-driven development.
Unit Testing with Javascript
7 HoursIn this instructor-led, live training in Brazil, participants will learn about various JavaScript testing frameworks as they step through the creation of a unit test suite for a web application.
By the end of this training, participants will be able to:
- Write unit tests in JavaScript using unit test frameworks such as QUnit and Jasmine
- Use frameworks such as Mocha and Chai to implement TDD and BDD
Unit Testing with C#
14 HoursUnit testing is a testing approach that tests individual units of source code by modifying its properties or triggering an event to confirm whether the outcome is as expected.
In this instructor-led, live training, participants will learn how to write and execute unit tests against a sample .Net application using C# and Visual Studio.
By the end of this training, participants will be able to:
- Use testing frameworks such as NUnit and xUnit.net to create and manage unit test code
- Define and implement a broader test driven development approach to testing
- Adapt the testing framework to extend the test coverage for an application
Audience
- Software test engineers
- Developers
Format of the course
- Part lecture, part discussion, exercises and heavy hands-on practice