diff --git a/tests/HostsParser.IntegrationTests/ExecutionUtilitiesTests.cs b/tests/HostsParser.IntegrationTests/ExecutionUtilitiesTests.cs index 4ea7072e..05e900c3 100644 --- a/tests/HostsParser.IntegrationTests/ExecutionUtilitiesTests.cs +++ b/tests/HostsParser.IntegrationTests/ExecutionUtilitiesTests.cs @@ -39,8 +39,8 @@ public async Task When_Running_Execute_MultiPassFilter_Toggle_Should_Differ_At_M // This is "okay" because the sort isn't 100% stable and it's a tradeoff between performance and stability. await Assert.That(linesWithoutMultiPass).IsNotEmpty(); await Assert.That(linesWithMultiPass).IsNotEmpty(); - await Assert.That(linesWithoutMultiPass.Except(linesWithMultiPass).Count()).IsLessThanOrEqualTo(5); - await Assert.That(linesWithMultiPass.Except(linesWithoutMultiPass).Count()).IsLessThanOrEqualTo(5); + await Assert.That(linesWithoutMultiPass.Except(linesWithMultiPass)).HasCount().LessThanOrEqualTo(5); + await Assert.That(linesWithMultiPass.Except(linesWithoutMultiPass)).HasCount().LessThanOrEqualTo(5); } } diff --git a/tests/HostsParser.IntegrationTests/HostsParser.IntegrationTests.csproj b/tests/HostsParser.IntegrationTests/HostsParser.IntegrationTests.csproj index 258ef8b7..ad9aea71 100644 --- a/tests/HostsParser.IntegrationTests/HostsParser.IntegrationTests.csproj +++ b/tests/HostsParser.IntegrationTests/HostsParser.IntegrationTests.csproj @@ -11,7 +11,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all - + diff --git a/tests/HostsParser.Tests/HostsParser.Tests.csproj b/tests/HostsParser.Tests/HostsParser.Tests.csproj index d7e7d870..a9f2bc8e 100644 --- a/tests/HostsParser.Tests/HostsParser.Tests.csproj +++ b/tests/HostsParser.Tests/HostsParser.Tests.csproj @@ -15,7 +15,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive all - +