Techorama 2017 has ended
Back To Schedule
Wednesday, May 24 • 08:45 - 09:45
Testing the Essential with AutoFixture

Log in to save this to your schedule, view media, leave feedback and see who's attending!

Feedback form is now closed.
Imagine this: you've just been assigned maintenance of a system. You're eager to understand what the system does so the first thing you do is to look for tests. You're in luck, there are hundreds of them. After having opened up a few of them, you start seeing objects being constructed left and right, filled with values like 123, "Test" and "Foo". What do all those values mean? Are they relevant for the outcome of the tests? What is really going on here? In this session I'll show you how to get rid of those questions by leveraging anonymous test data. By using a library such as AutoFixture to runtime-generate test data that meets your requirements, you can free yourself from having to write a lot of boilerplate setup code in your tests, leaving them to contain just the essence of what is being tested. It'll also make them more robust, since they no longer rely on hard coded constants to determine their outcome. Like with my other things in life, less is more. Learn how to apply this powerful principle to your tests.

avatar for Enrico Campidoglio

Enrico Campidoglio

Programmer, tretton37
Enrico is a programmer who combines a strong passion for quality with a mild OCD. He has spent over a decade in the Microsoft and Java camps, striving to write simple and expressive code in whatever language he happens to be using. He’s also a technical trainer and a speaker, who... Read More →

Wednesday May 24, 2017 08:45 - 09:45 CEST
Room 7