LaunchCode logo
  1. Contents
  2. 6. Unit Testing

6. Unit TestingΒΆ

  • 6.1. Testing in C#
    • 6.1.1. Why We Test
      • 6.1.1.1. Refactoring
      • 6.1.1.2. Documentation
    • 6.1.2. Testing Best Practices
    • 6.1.3. Check Your Understanding
  • 6.2. MSTest
    • 6.2.1. C# Attributes
    • 6.2.2. Testing Setup
      • 6.2.2.1. Car and CarTests
    • 6.2.3. [TestClass] and [TestMethod]
      • 6.2.3.1. Mac Users: Running Tests
      • 6.2.3.2. Windows Users: Running Tests
      • 6.2.3.3. All Users: Output and Adding More Tests
    • 6.2.4. [TestInitialize]
    • 6.2.5. [TestCleanup]
    • 6.2.6. Common Assert Methods
    • 6.2.7. Check Your Understanding
  • 6.3. Exercises: Unit Testing
    • 6.3.1. TestGasTankAfterDriving()
    • 6.3.2. TestGasTankAfterExceedingTankRange()
    • 6.3.3. TestGasOverfillException()
  • 6.4. Studio: Unit Testing
    • 6.4.1. Getting Started
    • 6.4.2. Uploading Your Work
  • ← 5.6. Studio: Restaurant Menu Continued
  • 6.1. Testing in C# →

Back to top

Page Source