Masterclass Unit Testing in .NET Training

Although unit testing has been a known practice for decades among software developers, it is still not being applied on a daily basis everywhere. The value of unit testing is well known, showing that fixing bugs early in the software development lifecycle is orders of magnitudes cheaper than fixing bugs in production.

Bugs can never be prevented by just using unit tests alone, but by writing unit tests, or even better, applying Test Driven Development (TDD), you ensure that your application is designed in such a way that it is easily testable and maintainable. So when bugs are found (and they will be found) you can fix and refactor code with confidence.

Another benefit of having unit tests is that they provide a clear explanation of how the application works. This helps you and future developers to understand the codebase and to make changes to it much more easily.

In this workshop you will learn how to write clean code by doing TDD exercises. The exercises start with writing basic unit tests and end with refactoring an untestable brown-field project. Along the way you’ll learn how to apply dependency inversion and other SOLID principles, use mocking and assertion frameworks and use Visual Studio and its tooling to the fullest to write maintainable unit tests.

Is Masterclass Unit Testing in .NET training right for me?

  • Yes – because you are a C#/.NET developer with little experience with unit testing
  • Yes – because you are a tester who wants to know more about unit testing
  • No – because you don’t write code on a daily basis 

What will I achieve by completing this training?

You will learn:

  • The criteria of a good unit test
  • How to write clean code using SOLID principles
  • How to apply TDD
  • Which frameworks to use to write maintainable unit tests
  • How to refactor a legacy solution to become testable 

You will gain hands-on experience in:

  • Using tooling to analyze your code
    - Visual Studio 2017/2019
    - Stryker
  • Writing tests before writing production code (TDD)
  • Writing tests using frameworks such as
    - xUnit
    - Moq
    - FluentAssertions
    - AutoFixture

You will develop the skills to:

  • Apply unit testing in both new and existing projects
  • Improve the quality and maintainability of your code base

What else should I know?

Prerequisites:

  • Basic understanding of C#/.NET

Requirements:

You will need to bring your own laptop for this training with the following requirements:

  • Most recent version of Visual Studio installed
  • Most recent version of the .NET Core SDK
contact-us

Get in touch

Our team is at your service

Get in touch! →

Or call +31 (0)20 760 9844