Test cases is always in pending state when Theory test case is introduced.
e.g. the following test case hangs the test runner
[Theory]
[InlineData(5, 0, 3, 3, 0)]
[InlineData(5, 0, 9, 5, 4)]
[InlineData(5, 5, 5, 5, 5)]
[InlineData(5, 2, 5, 5, 2)]
[InlineData(5, 2, 2, 4, 0)]
[InlineData(5, 3, 2, 5, 0)]
[InlineData(5, 2, 0, 2, 0)]
public void should_calculate_points_correctly_in_cross_boundary_cases(int total, int done, int available, int newDone, int remains)
{
var ticketPoints = new TicketPoints(total, done);
ticketPoints.Do(available).Should().Be(remains);
ticketPoints.Done.Should().Be(newDone);
}
Comments:
e.g. the following test case hangs the test runner
[Theory]
[InlineData(5, 0, 3, 3, 0)]
[InlineData(5, 0, 9, 5, 4)]
[InlineData(5, 5, 5, 5, 5)]
[InlineData(5, 2, 5, 5, 2)]
[InlineData(5, 2, 2, 4, 0)]
[InlineData(5, 3, 2, 5, 0)]
[InlineData(5, 2, 0, 2, 0)]
public void should_calculate_points_correctly_in_cross_boundary_cases(int total, int done, int available, int newDone, int remains)
{
var ticketPoints = new TicketPoints(total, done);
ticketPoints.Do(available).Should().Be(remains);
ticketPoints.Done.Should().Be(newDone);
}
Comments:
Not reproducable without more info from the submitter.