Automated Testing with MSTest V2
MSTest V2 is a cross platform, open source testing framework. This course will teach you how to create automated tests to check your code is working as expected, create data driven tests, control test execution, and also how to extend the framework.
What you'll learn
MSTest V2 is the evolution of the original "in-box" testing framework from Microsoft and is now a cross platform, open source testing framework. In this course, Automated Testing with MSTest V2, you'll learn how to use the framework to create automated test to help check your code is working correctly. First, you'll discover how to use the various assert features such as checking numeric, string, and collection values. Next, you'll explore how to take control of the test execution lifecycle and also execute additional setup or cleanup code. Finally, you'll learn how to execute a test multiple times with data driven tests and also how to customize and extend the MSTest framework to create more maintainable and readable test code. By the end of this course, you'll know how to create readable, maintainable, and customized automated tests with MSTest V2.
Table of contents
- Introduction 1m
- An Overview of Asserts 2m
- Asserting Boolean and Null Results 2m
- Asserting Numeric Results 4m
- Asserting on Double Values with Delta 4m
- Asserting Simple String Equality 2m
- Specialized String Asserts 4m
- Asserting Collection Results 7m
- Asserting That the Correct Exceptions Are Thrown 5m
- Asserting Object Types and References 4m
- Summary 1m
- Introduction 1m
- Organizing and Running Categories of Test 5m
- Running Categories of Tests at the Command Line 2m
- Temporarily Preventing a Test from Running 2m
- Outputting Additional Test Execution Messages During Test Execution 2m
- Running Additional Code Within a Test Class 4m
- Running Additional Code at the Assembly Level 2m
- Sharing Objects Between Tests 2m
- Summary 2m