---
title: "Test-Driven Development in .NET"
description: "In this 1-day hands-on workshop, C# developers learn unit testing and test-driven development in .NET: testing libraries, asserts, mocking and advanced tests."
url: https://tn-data.se/courses/test-driven-development-in-dotnet/
type: workshop
lang: en
alternate: https://tn-data.se/sv/kurser/testdriven-utveckling-i-net.md
site: https://tn-data.se/
image: https://tn-data.se/_astro/22.Ckb_SHTj_ZIT3Lc.webp
---

# Test-Driven Development in .NET

> Learn unit testing and test-driven development in .NET in one day.

## Workshop facts

- **Duration:** 1 day or 2 half days
- **Level:** Intermediate
- **Language:** English, Swedish

In this workshop you learn how to write tests in .NET and how to use test-driven development (TDD) to write better applications. It is up to date with Visual Studio 2026 and .NET 10.

The workshop mixes presentations, demonstrations and hands-on exercises. I also share the best practices and tools I use myself.

This workshop is the same as Part 3 of [C# – Beyond the Fundamentals](https://tn-data.se/courses/csharp-beyond-the-fundamentals/), so you don't need both.

### Who Is This Workshop For?

C# developers who want to learn TDD and improve their code quality by writing tests.

### Prerequisites

My [C# Fundamentals](https://tn-data.se/courses/csharp-fundamentals/) workshop or equivalent experience, including LINQ and lambda expressions.

### Workshop Agenda

During the workshop, we cover the following topics.

- Introduction to testing in .NET
- Testing libraries
- Running and debugging tests
- Asserts
- TDD
- Mocking
- Mocking libraries
- Advanced tests

### About the Trainer

My name is [Tore Nestenius](https://tn-data.se/about/). I teach on-site and remotely, both directly for companies and through training companies in Europe. What I bring:

- I have trained developers since 2010 and taught several hundred courses and talks.
- I create, maintain and teach every course myself, and improve it after every delivery.
- I am a Microsoft .NET MVP.
- I co-founded [Edument](https://www.edument.se/), a Swedish training and consulting company, where I was CTO, developer and trainer.
- I work as an [independent senior .NET consultant](https://tn-data.se/consulting/), so I teach from real projects.
- I have worked with .NET and C# since 2002.
- I hold the Azure AZ-204 and AZ-900 certifications.
- I co-founded the [.NET Skåne](https://www.meetup.com/net-skane/) user group.

![Tore Nestenius teaching a course](https://tn-data.se/_astro/Tore-in-action-1.6Zvr4mPb_10GDS1.webp)

### Training FAQs

#### Do you provide both on-site and remote training classes?

Yes, I provide both types of training.

#### Do you provide training in both Swedish and English?

Yes, both options are available. All my course materials are in English and I can teach the class in either Swedish or English.

#### Do you do half-day training?

When I run on-site, I usually do full-day classes. For remote training, I can provide options for both half and full days.

#### Do you do webinars and shorter talks?

Yes, please visit my [Talks](https://tn-data.se/talks/) page for more details.

#### Do you provide customized courses?

Yes, I do. [Contact me](https://tn-data.se/contact/) for more information.

## Related reading

- [Discovering .NET codebases using code coverage and NCrunch](https://nestenius.se/net/discovering-net-codebases-using-code-coverage-and-ncrunch/)

To book this workshop or ask about it, see the [contact page](https://tn-data.se/contact/).
