Introduction to .NET Testing with NUnit

Pluralsight
Course Summary
Learn how to get started writing .NET tests using the open source NUnit testing framework.
-
+
Course Description
NUnit is a popular open source alternative to the Microsoft MSTest framework and has over 1.5 Million NuGet downloads. NUnit can be used to write a variety of tests, from unit and integration tests, through to automated UI tests (when used in conjunction with other frameworks). In this course you'll learn about the general qualities of good tests before learning how to write and run tests in Visual Studio, from the command line, and using the NUnit GUI tool. In module 2 you will learn how to assert that your tests should pass or fail, including how to assert against floating point values, collections, and how to check that exceptions are thrown when expected. In the final module you will learn some additional attributes to perform tasks such as creating data-driven tests.
-
+
Course Syllabus
Getting Started- 31m 14s
—Introduction 0m 33s
—Why Write Automated Tests? 2m 33s
—Testing Frameworks and Test Runners 1m 23s
—NUnit Test Suite Organizational Structure 1m 19s
—Designating Test Code 1m 13s
—What Are Asserts? 1m 39s
—What Makes a Good Test? 2m 28s
—Naming Conventions 1m 12s
—Enabling NUnit Test Execution in Visual Studio 0m 55s
—Writing an NUnit Test from Scratch 8m 49s
—Refactoring the Test Code 2m 16s
—Running Tests in Resharper 1m 55s
—Running Tests with NUnit GUI 1m 53s
—Running Tests from the Command Line 1m 38s
—Summary 1m 23sNUnit Asserts- 36m 46s
—Introduction 1m 25s
—Asserting String Equality 2m 45s
—Asserting Numerical Equality 4m 26s
—Asserting DateTime Equality 2m 48s
—Asserting with Ranges 3m 3s
—Assert Nulls and Booleans 3m 7s
—Asserting on Collections? 7m 11s
—Asserting Reference Equality 1m 25s
—Asserting on Object Types and Properties 3m 52s
—Asserting Exceptions Are Thrown 4m 50s
—Summary 1m 50sNUnit Attributes- 40m 22s