Property based testing with Xunit
Play Property based testing with Xunit
In traditional unit testing, you run your code with specific inputs and check that you get the expected outputs. This means you need to anticipate possible problematic inputs in advance. Property-based testing is a technique where your tests describe the properties and behaviour you expect your code to have, and a framework tries to find inputs that violate those expectations. This session explains what property-based testing is, how it works, and where it fits into your testing strategy, and walks you through building property-based tests using the Xunit test framework.