TDD in C# From A to Z (Udemy.com)
Grow software by TDD with SpecFlow + TestStack White. Learn test-driven development and improve unit testing skills!
Created by: Engineer Spock
Last updated July 2020
What you will learn
- Practice TDD in your daily job
- Practice katas to improve TDD and understanding of the programming fundamentals
- Write acceptance tests with SpecFlow in Gherkin
- Develop software in a "true" agile, iterative process
- Apply best practices of unit testing and TDD
How it compares
Against the other 281 rated Udemy courses in Software Testing on CourseDuck:
- Rating4.6 out of 5higher than 71% of them
- Reviews1,292#114 of 282 by number of reviews
- Length9.6 hourslonger than 61% of them
- Last updatedJuly 2020earlier than 84% of them
Course Description
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
Here is my Teaching Approach -
No fluff, no ranting, no beating the air. I respect your time. The course material is succinct, yet comprehensive. All important concepts are covered. Particularly important topics are covered in-depth.
Take this course, and you will be satisfied.
Instructor Details
- 4.6 Rating
1,292 Reviews
Engineer Spock
I'm thankful enough for that I love what I do.
I began my career as a postgraduate student participating in Microsoft ImagineCup contest.
I've been working with .NET platform since 2003. I've been professionally architecting and implementing software for nearly 7 years, primarily based on .NET platform. I'm passionate about building rich and powerful applications using modern technologies. I'm a certified specialist in Windows Applications and Service Communication Applications by Microsoft. I'm one of the coordinators of the MSK.NET User Group in Moscow.
"If it's work, we try to do less. If it's art, we try to do more." - Seth Godin.
What I can say is that software is my art.
More courses by Engineer Spock
Algorithms and Data Structures in C#: Complete Tutorial (2026)
4.6 (2,310 Reviews)
Provider: Udemy
Time: 18.5h
$64.99
Learn Enterprise WPF with XAML from Scratch (2020)
4.1 (1,503 Reviews)
Provider: Udemy
Time: 5.1h
$11.99
Software Architecture: Meta and SOLID Principles in C# (2020)
4.3 (1,310 Reviews)
Provider: Udemy
Time: 4.8h
$11.99
Master the Art of Writing Clean Code in C# (2020)
4.5 (1,231 Reviews)
Provider: Udemy
Time: 7.2h
$79.99
API in C#: The Best Practices of Design and Implementation (2020)
4.1 (1,108 Reviews)
Provider: Udemy
Time: 3.4h
$11.99
More Software Testing courses
ZeroToHero TestNG Framework - From Basics to Advanced (2026)
4.9 (828 Reviews)
Provider: Udemy
Time: 6.2h
$59.99
Selenium WebDriver with Java- Basics to Advanced + Framework (2026)
4.9 (620 Reviews)
Provider: Udemy
Time: 35.5h
$84.99
Karate DSL: API Automation and Performance from Zero to Hero (2026)
4.8 (4,652 Reviews)
Provider: Udemy
Time: 7.2h
$10.99
API Testing in detail using Postman - Test Automation (2026)
4.8 (423 Reviews)
Provider: Udemy
Time: 7.8h
$10.99
Quick Introduction to Postman and API Testing for Beginners (2025)
4.7 (23,113 Reviews)
Provider: Udemy
Time: 3.2h
$13.99
Software Testing Masterclass (2026) - From Novice to Expert
4.7 (12,622 Reviews)
Provider: Udemy
Time: 9.9h
$149.99
Reviews
By Jorge Sandoval on 9/22/2022
Muy bien explicado! sin embargo, tiene un nivel muy alto de lógica de programación que es difícil seguir, pero es SORPRENDENTE su manera de programar.
By Eugene Kiver on 9/10/2022
The general structure of the tests application is missing. All the examples are "for the sake of simplicity" do not illustrate production structure of tests application to bigger projects than one class. There are a lot of things I learned but 3 hours into a course and I'm not sure how to create a test project inside my solution. Maybe I should've took the basics course or not. Not sure
By L D Zimmerman on 7/7/2022
I've read a few books and articles on TDD with simplistic examples, this course goes farther and incorporates solid principles and mocking and dummy codes in a manner that I began to understand what all the authors were trying to accomplish. The final example with the application brought everything into prospective for me, though I'll concentrate on the unit tests more than the integration test in my current projects. The use of interfaces to inject mock databases have been a stumbling block, always talked about but few examples, but here fully utilized. A light bulb when off for me seeing it in action for a more complete integration. The refactoring example for TDD was too hastily explained though. I also didn't give 5/5 because of the example files, which I thought should have been more closely related to the chapters. Even after downloading, I had difficulty relating the examples to the chapters.
By Anonymized User on 1/4/2022
Each concept is explained so well. Looking forward to using this and other resources from this author on my dev journey. Thank you so much Engineer Spock!
By Matthias Bayer on 1/25/2021
Elias is a very knowledgable engineer, he explaines a lot of topics regarding TDD in this course. The english is accented but understandable for the most part (I am not an english speaker myself), however, sometimes the pronounciations are a bit difficult to understand and I had to rewind a bit to get the meaning. Sometimes the tutor codes without saying as to what or why he is coding, but more often than not, it is clear anyway. This course is extensive, but even so, sometimes I wished Elias (or Engineer Spock as he calls himself, which I do like ;-) ) would have gone more into details as to "why" this is a good practice. The statement "for obvious reasons", which he uses at some instances does not explain much for someone who doesn't see the "obvious reason" or who hasn't come into contact with the topic yet. In future please just take the time for a quick sentence and state why this is good/bad. Other than that I like the way the tutor structured this course and I also like the pace of it.
By Jude Edem Abormegah on 1/16/2021
This course is packed with lots of information for both beginners and experienced developers who want to improve their TDD processes.
By Martin Eastwood on 7/22/2020
The course exposed many TDD examples and scenarios that introduce the subject. The course provided do's and don'ts along with plenty of practice challenges. Some of the longer examples can be a bit hard to follow, but overall I learned what I needed.
By Paulo Pocinho on 12/8/2019
This course includes very clear explanations on what TDD is all about. The instructor is able to drive key concepts, with concise examples. The pace is fluid and constant. I had time to think through and follow the live example code. It is a practical course that inspires the right mindset on writing testable code from start to finish. I enjoyed the lectures and, as a bonus, I also learned about other techniques and thought-provoking topics related to TDD.
By Roberto Alfonso on 11/24/2019
A solid course with everything one must learn to start writing unit testing. The good: Covers everything that needs to be learnt to implement TDD, the theory is solid (albeit simplified). Plenty of examples even though simple. The bad: Lacked theory, white-box testing techniques to choose tests. NUnit instead of Xunit, instead NSubstitute of Moq. Too little about SpecFlow and TestStack.White to have them named in the About section of the course. Could have used a better TestStack.White example program. The ugly: Audio issues, some lessons are too quiet to be watched on the bus with earphones. Just too much fast-forward code writing that could have been skipped.
By Aaron Burch on 11/12/2019
Very engaging, well paced, and detailed. I appreciate the practical examples and live coding sessions. Good job!
Quality Score
No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.
Overall Score : 92 / 100












