mirror of
https://onedev.fprog.nl/AioNet
synced 2026-03-13 19:34:08 +01:00
Refactor.
This commit is contained in:
parent
1797d05cf0
commit
579b10419e
|
|
@ -20,7 +20,7 @@ public class ExtendedLinqTest
|
||||||
public void FindThreeCombinationsFor3Elements_SubsequenceLength2()
|
public void FindThreeCombinationsFor3Elements_SubsequenceLength2()
|
||||||
{
|
{
|
||||||
var foundCombinations = new[] { 1, 2, 3 }.Combinations(2);
|
var foundCombinations = new[] { 1, 2, 3 }.Combinations(2);
|
||||||
Assert.True(foundCombinations.Count() == 3);
|
Assert.Equal(3, foundCombinations.Count());
|
||||||
}
|
}
|
||||||
|
|
||||||
[Theory]
|
[Theory]
|
||||||
|
|
@ -35,7 +35,7 @@ public class ExtendedLinqTest
|
||||||
|
|
||||||
foreach (var foundCombination in foundCombinations)
|
foreach (var foundCombination in foundCombinations)
|
||||||
{
|
{
|
||||||
Assert.True(foundCombination.Count() == subsequenceLength);
|
Assert.Equal(subsequenceLength, foundCombination.Count());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue