XUnit testing

Strongly typed xUnit theory test data with TheoryData

Reading Time: 5 minutes TheoryData class In xUnit, test methods can be decorated with attributes like [Fact] or [Theory]. When a test method is decorated with the [Theory] attribute, it means that the method is not testing a single case but instead testing a general rule that should hold true for multiple sets of data. TheoryData is a class …