Refactor.

This commit is contained in:
Filip Strajnar 2024-05-07 22:08:21 +02:00
parent 1797d05cf0
commit 579b10419e

View file

@ -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());
} }
} }
} }