Learn how to use TDD in everyday work and write high-quality code
About This Video
Learn what unit tests are and how to use them
Learn how to add test support to your project and use unit test frameworks
Learn what TDD is and how to use it
Learn how to write testable code by applying best practices, techniques, and patterns
In Detail
Even after so many years, TDD is still one of the main buzzwords at almost every conference. This technique …
Introducing Test Driven Development in C#
Video description
Learn how to use TDD in everyday work and write high-quality code
About This Video
Learn what unit tests are and how to use them
Learn how to add test support to your project and use unit test frameworks
Learn what TDD is and how to use it
Learn how to write testable code by applying best practices, techniques, and patterns
In Detail
Even after so many years, TDD is still one of the main buzzwords at almost every conference. This technique has proven itself to be one of the best practices out there when it comes to writing maintainable, robust, and testable code. This course covers key concepts, methods, and patterns behind TDD through concrete and practical examples in C# 7.
This course starts off with an introduction to unit tests and unit test frameworks. Basically, you will learn how to write and automate tests for your implementations. After that, we shift the paradigm and see how to write your tests before implementation itself. We explore how to add full test support to our projects, as well. Through practical examples you will witness how this technique helps us write higher-quality code. In the final sections of this course, you will learn proven methods and patterns for writing modular and testable code. The principles of TDD will help you write better and cleaner code. In addition, you’ll see how solid tests give you a new sense of confidence when you need to modify existing code, refactor, and add new features.
By the end of this course, you will have the tools you need to start building bulletproof applications, backed by an automated suite of tests to ensure quality software delivery.
Audience
This course is aimed at developers who are familiar with software development in .NET and in the C# programming language. Also, a familiarity with Visual Studio and Visual Studio Code is expected.
Chapter 1 : Learn How Your Software Works with Test Automation
The Course Overview
Exploring Test Automation
Types of Automation Tests
Implementing Automation Frameworks in .NET
Automated Testing Demonstration with an Example
Chapter 2 : TDD – The Workflow to Bulletproof Your Code
Understand TDD with an Example
TDD Versus Traditional Testing
Development Cycle of TDD
Chapter 3 : Adding Test Support to a .NET Project
Creating the Test Project in Visual Studio
Creating the Test Project in Visual Studio Code
Using Patterns for Arranging and Formatting Code
Dive into Continuous Testing and Code Coverage
Chapter 4 : The Art of Writing Testable Code
Testable Code and Single Responsibility Principle
Anti-Pattern – Singleton Pattern
Anti-Pattern – The new Operator
Anti-Pattern – Static Methods
Chapter 5 : Testing Modular Code Via Mocking
Introduction to Mocking
Manually Mocking Interfaces
Using Moq Framework
Chapter 6 : Modularizing Code and Inversion of Control
Dependency Inversion Principle and Inversion of Control
Factory Method Design Pattern and Abstract Factory Design Pattern
Using Delegate Types
Chapter 7 : Dependency Injection Pattern – The Holy Grail of Modular Design
Dependency Injection
Dependency Injection Patterns
Dependency Injection Containers
Composition Root
Chapter 8 : Concrete Examples of Common Abstractions
Repository Pattern Introduction
Repository Pattern Implementation
Service Layer
Start your Free Trial Self paced Go to the Course We have partnered with providers to bring you collection of courses, When you buy through links on our site, we may earn an affiliate commission from provider.
This site uses cookies. By continuing to use this website, you agree to their use.I Accept