Traditional unit tests rely on carefully crafted examples, but what if you could have your computer generate and verify thousands of test cases for you? Property-based testing is a powerful technique that allows developers to define expected properties of their code and let a testing framework explore edge cases automatically.
This session introduces property-based testing in C#, demonstrating how it differs from unit testing, how it can uncover hidden bugs and when (or when not!) to apply it.
Through practical examples using FsCheck, attendees will learn how to generate random test data, define meaningful properties, and apply property-based testing to real-world scenarios. Whether you’re new to property-based testing or looking to deepen your understanding, this talk will provide actionable insights to improve the reliability and robustness of your code and tests.