Session
Advanced Unit Testing Techniques: Enter the Tesseract
How many of you think unit testing is simple? Just input → output, right? Well, what happens when your tests become social - when objects have dependencies and lifetime?
Suddenly, time is about to warp... you've entered the tesseract!
In physics, a tesseract is a 4-dimensional cube. In testing, the metaphor is relevant:
1D: Simple method calls (solitary tests)
2D: Object interactions (social tests)
3D: Realistic doubles (social tests + dockerized infrastructures)
4D: TIME - When dependencies are created, live, and die.
In this 50mn of live coding, we will test services lifecycles using xUnit's time boundaries
and understand how controlling time and lifecycle matters in realistic tests situations.
When unit testing becomes social, time cannot be escaped!
a Live Coding Session for Advanced C# Developers,
introducing: the Tesseract of Tests.
You will understand how to navigate all four dimensions - from simple methods to complex social interactions, and most importantly, how to control TIME in your tests.
You will see how service lifetimes work under the hood, and how xUnit gives you the tools to test them properly.
Whether you use Microsoft DI, Windsor, Autofac, or any other library, these principles remain the same.
Welcome to the 4th dimension of testing !

Guillaume Saint-etienne
Senior Coder, Dev Advocate, Software & Team Architect
Toulouse, France
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top