Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
68 Lessons (8h 16m)
    • 1. 00 TDD Promo

      6:22
    • 2. 01 Introduction to TDD 01 Outline

      1:06
    • 3. 01 Introduction to TDD 02 Why we need TDD

      16:18
    • 4. 01 Introduction to TDD 03 What is TDD

      5:00
    • 5. 01 Introduction to TDD 04 Red Green Refactor

      4:16
    • 6. 01 Introduction to TDD 05 Three Laws of TDD

      1:42
    • 7. 01 Introduction to TDD 06 Changing Requirements and the Safety Net

      5:23
    • 8. 01 Introduction to TDD 07 F

      2:48
    • 9. 01 Introduction to TDD 08 Code Coverage

      2:19
    • 10. 01 Introduction to TDD 09 Different Types of Tests

      4:04
    • 11. 01 Introduction to TDD 10 Testing Frameworks and Tools

      5:06
    • 12. 01 Introduction to TDD 11 When TDD Fails

      2:46
    • 13. 01 Introduction to TDD 12 Conclusion

      2:02
    • 14. 02 TDD in Practice 01 Outline

      1:46
    • 15. 02 TDD in Practice 02 Regular Agile Process

      1:59
    • 16. 02 TDD in Practice 03 VS and ReSharper Shortcuts

      3:44
    • 17. 02 TDD in Practice 04 Fibonacci Numbers

      7:38
    • 18. 02 TDD in Practice 05 Three Main TDD Techniques

      4:31
    • 19. 02 TDD in Practice 06 Grabbind the Gold

      3:10
    • 20. 02 TDD in Practice 07 FizzBuzz

      11:06
    • 21. 02 TDD in Practice 08 RomanNumerals

      12:07
    • 22. 02 TDD in Practice 09 Updateable Spin

      17:50
    • 23. 02 TDD in Practice 10 Continuos Testing

      3:57
    • 24. 02 TDD in Practice 11 TicTacToe

      36:17
    • 25. 02 TDD in Practice 12 Assert First

      1:26
    • 26. 02 TDD in Practice 14 Conclusion

      1:50
    • 27. 03 Katas 01 Outline

      1:39
    • 28. 03 Katas 02 Stack

      13:43
    • 29. 03 Katas 03 ImmutableStack

      16:55
    • 30. 03 Katas 04 LinkedList

      35:00
    • 31. 03 Katas 05 Conclusion

      0:48
    • 32. 04 Acceptance and Integration Tests 01 Outline

      1:28
    • 33. 04 Acceptance and Integration Tests 02 What is Acceptance Testing

      2:23
    • 34. 04 Acceptance and Integration Tests 03 Overview of SpecFlow

      1:43
    • 35. 04 Acceptance and Integration Tests 04 Gherkin

      3:41
    • 36. 04 Acceptance and Integration Tests 05 Basics of SpecFlow

      9:32
    • 37. 04 Acceptance and Integration Tests 06 Integration and UI Testing

      5:24
    • 38. 04 Acceptance and Integration Tests 07 UI Automation Testing Frameworks

      1:05
    • 39. 04 Acceptance and Integration Tests 08 TestStack

      4:00
    • 40. 04 Acceptance and Integration Tests 09 Conclusion

      1:40
    • 41. 05 TDD of a WPF App 01 Outline

      2:18
    • 42. 05 TDD of a WPF App 02 App Overview

      9:00
    • 43. 05 TDD of a WPF App 03 Writing Acceptance Tests

      14:58
    • 44. 05 TDD of a WPF App 04 Building a Bridge to UI

      19:52
    • 45. 05 TDD of a WPF App 05 Implementing Acceptance Tests

      33:19
    • 46. 05 TDD of a WPF App 06 Implementing View Models Part 1

      68:23
    • 47. 05 TDD of a WPF App 07 Implementing View Models Part 2

      23:38
    • 48. 05 TDD of a WPF App 08 Conclusion

      1:46
    • 49. 06 Thoughts on TDD 01 Outline

      1:00
    • 50. 06 Thoughts on TDD 02 What is TDD in the End

      0:59
    • 51. 06 Thoughts on TDD 03 Agile and TDD

      1:32
    • 52. 06 Thoughts on TDD 04 TDD and Design Upfront

      2:35
    • 53. 06 Thoughts on TDD 05 Do Unit Tests Guarantee the Success

      2:25
    • 54. 06 Thoughts on TDD 06 Having No Tests is Better than Having Bad Tests

      3:22
    • 55. 06 Thoughts on TDD 07 Architecture and Design

      4:56
    • 56. 06 Thoughts on TDD 08 Conclusion

      1:40
    • 57. 07 Best Practices 01 Outline

      1:08
    • 58. 07 Best Practices 02 Ending the TDD Day

      1:41
    • 59. 07 Best Practices 03 Pair Programming

      3:23
    • 60. 07 Best Practices 04 Quality of Tests

      3:35
    • 61. 07 Best Practices 05 TestData

      1:50
    • 62. 07 Best Practices 06 Shouldly

      1:33
    • 63. 07 Best Practices 07 Prefer Positive if statements

      1:15
    • 64. 07 Best Practices 08 Testing Trivial Code

      2:59
    • 65. 07 Best Practices 09 The Rule of Testing a Single Concern

      3:06
    • 66. 07 Best Practices 10 Singletons and Static Classes

      7:02
    • 67. 07 Best Practices 11 Builder Design Pattern

      9:08
    • 68. 07 Best Practices 12 Conclusion

      1:48

About This Class

Today unit testing is the absolutely required skill which is required from any professional developer. Companies expect from developers to know how to write unit tests including all the most important topics such as mocking and test-driven development (TDD in short).

This course is all about practicing TDD using C# programming language and NUnit as a unit testing framework. Along the way, we will learn the concepts related to unit testing. This course does not cover all the features of NUnit. This course is way more interesting.

Learning unit testing and TDD puts a powerful and very useful tool at your fingertips. Being familiar with unit testing and TDD you can write reliable and maintainable applications. It is very hard to lead a project which is not covered by unit tests.

Content and Overview

This course is primarily aimed at developers who’re already familiar with the basics of unit testing and dependency injection. Some experience in C# programming is required. The course provides solid theoretical base reinforced by tons of practical material.

We start with basics of test-driven development. Why we need TDD? What is TDD? When TDD fails, three laws of TDD, different types of tests, tooling and other fundamental topics. This section is mostly theoretical.

Theory is dead without practice, so starting from the second section, you’ll see tons of programming sessions where I’ll demonstrate how to implement generating of Fibonacci numbers, FizzBuzz, parsing of roman numerals, updateable spin synchronization primitives, tic-tac-toe or crosses and noughts game and game in sticks. You’ll also learn:

  • How a regular agile development process looks like
  • That you need to learn shortcuts to practice TDD more smoothly
  • Three Main TDD techniques: faking, triangulation and obvious implementation
  • Which tests to write first
  • How to start writing a test in a TDD manner
  • Stack kata
  • Immutable stack kata
  • And list kata
  • What is acceptance testing
  • About the SpecFlow acceptance testing framework
  • How to write acceptance tests with SpecFlow in Gherkin language
  • What are UI tests
  • What tools for writing UI Tests exist
  • How to access UI through the TestStack.White framework

Have you heard about katas? No, I’m talking about programming. In the third section, you’ll learn what is a code kata and I’ll demonstrate three code katas:

Growing an application by writing tests first, we’re not only writing unit tests first. So, in the next section, you’ll learn what is acceptance testing and integration testing. You’ll learn:

You’ll need to see how to apply all the material learned by this moment. Practice helps very much with understanding especially when we uncover highly practical topics such as TDD. That’s why I decided to show you how all the things work in practice altogether. So, in the next section, you’ll see a real enterprise approach for working on a software project in action.

  • I’ll build a bridge to UI through TestStack.White applying the Page Object design pattern
  • I’ll write acceptance tests using the bridge built for accessing UI
  • I’ll implement ViewModels and all the corresponding business-logic
  • What is TDD in the end? Is it possible to live without it?
  • The relationships between TDD and Agile development process
  • Should we design architecture upfront or not?
  • Do unit tests guarantee the success?
  • Quality of tests, some criterions
  • How to express data for writing unit tests
  • Shouldly for writing more readable assertions
  • Singletons, Static classes and testability, Builder design pattern
  • And some other important topics

The last two sections are rather philosophical. We will discuss:

  • What is TDD in the end? Is it possible to live without it?
  • The relationships between TDD and Agile development process
  • Should we design architecture upfront or not?
  • Do unit tests guarantee the success?
  • Quality of tests, some criterions
  • How to express data for writing unit tests
  • Shouldly for writing more readable assertions
  • Singletons, Static classes and testability, Builder design pattern
  • and some other important topics