Testing .NET Code with xUnit.net 2
Pluralsight
Course Summary
Learn how to get started writing .NET tests using the open source xUnit.net 2 testing framework.
-
+
Course Description
xUnit.net 2 is a modern, extensible, multi-platform testing framework for .NET. Currently being used by the Microsoft ASP.Net 5 development team, xUnit.net allows the creation, execution, and customization of automated tests such as unit, integration, and, when combined with other libraries, even automated UI tests. In this course, you'll learn about the features of xUnit.net 2 and learn how to write and run tests in Visual Studio Test Explorer, ReSharper, and from the command line. You'll learn to write test asserts against different types of objects, including how to assert against floating point values, collections, and how to check that exceptions are thrown when expected. The course also covers how to customize the test execution life cycle and how data driven tests can reduce the amount of test code that needs to be written and help reduce test maintenance costs.
-
+
Course Syllabus
Introducing xUnit.net- 25m 16s
—Introduction 0m 54s
—Design Goals and Features 1m 32s
—Supported Platforms 0m 56s
—Adoption and Usage 0m 47s
—Test Discovery and Essential Attributes 0m 57s
—Running xUnit.net Tests 1m 19s
—NuGet Packages 0m 52s
—Getting Started in Visual Studio 6m 2s
—Running Tests with ReSharper 1m 40s
—Running Tests from the Command Line 3m 31s
—Testing Windows Universal Apps with xUnit.net 4m 43s
—Course Structure 0m 59s
—Summary 1m 1sAsserting Test Results- 49m 12s
—Introduction 1m 42s
—The Assert Test Phase 2m 0s
—Asserting Numeric Test Results 6m 47s
—Asserting String Test Results 6m 20s
—Asserting Null and Boolean Test Results 3m 30s
—Asserting Collection Test Results 7m 54s
—Asserting Test Results Fall within Expected Ranges 2m 57s
—Asserting That Exceptions Are Thrown When Expected 6m 8s
—Asserting on Object Types 5m 46s
—Asserting INotifyPropertyChanged PropertyChanged Events 4m 23s
—Summary 1m 43sControlling the Test Execution Lifecycle- 47m 20sReduced Code and Improved Maintainability with Data Driven Tests- 28m 19sMigrating to xUnit.net from NUnit and MSTest- 9m 5s