Skip to content

Property Based Testing in .NET

Photo of Michael Slater
Hosted By
Michael S. and Joseph H.
Property Based Testing in .NET

Details

Join us for Networking and a Speaker Presentation with other .NET professionals in the Houston area.

Improving is sponsoring our meeting and provides the location, pizza, and drinks. HDNUG is also part of the .NET Foundation

Abstract:
If you've written automated tests, you're likely to have written Example Based Tests. These tests will assert specific results from the code under test. However, there is another kind of testing called Property Based Testing. Rather than using examples, you write these tests to assert universal properties (invariants) that should hold of your code.

Property Based Tests exchange test depth for breadth. Because you are testing universal properties, you can test your assertions across hundreds, thousands (or more) different inputs. In the process, you can uncover bugs and gain surprising insights about your software.

Property Based Testing frameworks simplify the task by automatically generating test data for you, running multiple instances, and narrowing down where a test failure could have occurred.

In this talk I'll cover the ins and outs of Property Based Tests and walk you through some examples in both F# and C#.

Photo of Houston .NET User Group group
Houston .NET User Group
See more events
Improving
10111 Richmond Ave. # 100 · Houston, TX