Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Treehouse

Unit Testing in C# Course (How To)

via Treehouse

Overview

Limited-Time Offer: Up to 75% Off Coursera Plus!
7000+ certificate courses from Google, Microsoft, IBM, and many more.

Unit testing is key to ensuring that your code works as expected. Learn how to write unit tests and perform test driven development using industry standard tools and methods.

What you'll learn

  • Unit Testing
  • Test Driven Development
  • xUnit.net

Syllabus

Unit Testing

Unit testing is key to creating quality software.

Chevron 8 steps
  • What is Unit Testing?

    2:20

  • What Is Unit Testing?

    3 questions

  • Unit Testing vs Functional Testing

    2:55

  • Why Unit Test?

    3:38

  • Why Unit Test?

    5 questions

  • Review Treehouse Defense

    1:33

  • xUnit.net Unit Test Framework

    2:47

  • Unit Test Frameworks

    4 questions

Writing Unit Tests

Use xUnit to write unit tests.

Chevron 8 steps
  • Our First Test

    6:31

  • First Test

    1 objective

  • Running Tests

    4:19

  • Test Cases

    4:26

  • Testing for Exceptions

    3:21

  • Testing Exceptions

    1 objective

  • Debugging Tests

    2:40

  • Test Cases

    4 questions

Test Driven Development

Use unit tests to help write code with TDD.

Chevron 9 steps
  • What is Test Driven Development?

    4:42

  • TDD

    2 questions

  • Red

    11:01

  • Green

    5:25

  • Refactor

    4:06

  • TDD

    4 objectives

  • TDD Workflow

    6:06

  • TDD Workflow - Continuous Integration

    2:54

  • TDD

    6 questions

What To Test

It's important to know what and how much to test.

Chevron 7 steps
  • Isolation Testing

    12:34

  • How Much To Test

    2:46

  • Code Coverage

    3:46

  • Code Coverage

    3 questions

  • Other Types of Testing

    4:35

  • Wrap-up

    1:17

  • Wrap Up

    3 questions

Reviews

Start your review of Unit Testing in C# Course (How To)

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.