Unit Testing Basics
  • Introduction
  • What is a Unit Test
  • Creating your first unit test
  • Benefits of unit tests
  • Continuous Integration
  • Who should write Unit Tests
  • Naming conventions
Running Unit Tests
  • Running unit tests
  • Unit Test Generation
  • Debugging unit tests
Grouping and Filtering Unit Tests
  • Grouping Unit Tests
  • Traits
  • Filtering Unit Tests
  • Playlists
Code Coverage
  • Code Coverage
  • TestClass and TestMethod attirbutes
  • Testing Exceptions
  • Unit Testing Private Methods
  • Ordered Test
  • Generic Test
  • Running unit tests from the command line
Data Driven Unit Tests
  • TestContext
  • Data-Driven Unit Test
  • Data-Driven Unit Test - XML
  • Data-Driven Unit Test - CSV
  • Using a Configuration File to Define a Data Source
Initialize and Cleanup attributes
  • TestInitialize and TestCleanup
  • ClassInitialize and ClassCleanup
  • AssemblyInitialize and AssemblyCleanup
  • TimeOut and Ignore attributes
Unit Test Assertions
  • Asserts
  • Assert class
  • Assert Object Equality
  • CollectionAssert
  • CollectionAssert.AreEqual Override Equals
  • CollectionAssert.AreEqual IComparer
  • CollectionAssert.AreEqual project to list of strings
  • CollectionAssert.AreEquivalent
  • CollectionAssert - Rest of the methods
  • StringAssert
TDD - Test Driven Development
  • What is TDD
  • Benefits of TDD