Released
4/11/2016In this course, Reynald Adolphe explains the principles of test-driven development and shows how to apply them to two different C# workflows. First, he creates a new test-driven project. He writes the test cases before the code to drive the design of the program. In the second scenario, he writes test cases for an existing C# project, to find bugs before it goes live. Along the way, Reynald uses Microsoft's MSTest, but he also introduces other testing tools (such as the unit testing framework xUnit and the mocking framework Moq) and theories (such as the red-green-refactor mantra and SOLID principles) that make test-driven development so efficient.
- Different approaches to testing
- Using testing tools and mocking frameworks
- Creating a simple C# test-driven project
- Adding a failing test
- Updating tests to pass
- Refactoring code
- Using Moq to test data
Skill Level Intermediate
Duration
Views
- Hi I'm Reynald Adolphe and welcome to C# test driven development. Test driven development has become really popular in the space of software engineering and for good reason. It brings us a lot of benefits such as making it easier to catch bugs early and decoupling code. In this course we'll cover those benefits among others but also important topics like unit testing and the tools used for it, mocking and its tools, the concept of red-green refactoring, SOLID principles which is an acronym we'll cover.
We'll also create unit tests for our programs in two scenarios. In the first scenario, we'll write test cases before writing any code and then create the programs based on those test cases. And the second scenario will be for a program that already exists and then we'll write test cases for it. So I hope you're as excited as I am. Let's go ahead and do this.
Share this video
Embed this video
Video: Welcome