Skip to content

Commit

Permalink
Showcase that we can run/render 1k+ tests
Browse files Browse the repository at this point in the history
Related to #47
  • Loading branch information
kzu committed Feb 18, 2025
1 parent 2695bdc commit 99eed20
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Sample/UnitTest1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,13 @@ public void FailsTwice()
// Succeeds
File.Delete("failstwice.txt");
}

public static IEnumerable<object[]> GetNumbers() => Enumerable.Range(0, 1100).Select(x => new object[] { x });

[Theory]
[MemberData(nameof(GetNumbers))]
public void NumberIsPositive(int value)
{
Assert.True(value >= 0);
}
}

0 comments on commit 99eed20

Please sign in to comment.