Closed alrz closed 2 years ago
When you try, do you replace the CombinatorialData
with PairwiseData
?
Yes, that's what I tried.
It works when I try it:
[Theory, PairwiseData]
public void PairwiseOption(
[CombinatorialRange(0, 3)] int c1,
[CombinatorialRange(0, 3)] int c2,
[CombinatorialValues("System.Span<int>", "int[]")] string type)
{
}
[Theory, CombinatorialData]
public void CombinatorialOption(
[CombinatorialRange(0, 3)] int c1,
[CombinatorialRange(0, 3)] int c2,
[CombinatorialValues("System.Span<int>", "int[]")] string type)
{
}
As shown below, the pairwise option generates only 9 test cases while the combinatorial one generates 18.
Thanks. Looks like I was missing something the first time I tried, sorry.
Looks like using PairwiseData in the following test won't make a different in test run count.