3312 Views
In my last post, I described the various ways to pass data to an xUnit [Theory] test. These are: [InlineData] - Pass the data for the theory test method parameters as arguments to the attribute [ClassData] - Create a custom class that implements IEnumerable , and use this to return the test data [MemberData] - Create a static property or method that returns an IEnumerable and use it to supply the test data.
0 comments