From 579b10419e0ee2e96a869ca9a2569c10177b240a Mon Sep 17 00:00:00 2001 From: Filip Strajnar Date: Tue, 7 May 2024 22:08:21 +0200 Subject: [PATCH] Refactor. --- AioNet.LinqTest/ExtendedLinqTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AioNet.LinqTest/ExtendedLinqTest.cs b/AioNet.LinqTest/ExtendedLinqTest.cs index 050f1e9..130c7f8 100644 --- a/AioNet.LinqTest/ExtendedLinqTest.cs +++ b/AioNet.LinqTest/ExtendedLinqTest.cs @@ -20,7 +20,7 @@ public class ExtendedLinqTest public void FindThreeCombinationsFor3Elements_SubsequenceLength2() { var foundCombinations = new[] { 1, 2, 3 }.Combinations(2); - Assert.True(foundCombinations.Count() == 3); + Assert.Equal(3, foundCombinations.Count()); } [Theory] @@ -35,7 +35,7 @@ public class ExtendedLinqTest foreach (var foundCombination in foundCombinations) { - Assert.True(foundCombination.Count() == subsequenceLength); + Assert.Equal(subsequenceLength, foundCombination.Count()); } } }