CA1827: Do not use Count/LongCount when Any can be used
MODIFY
WalletWasabi.Tests/IntegrationTests/LiveServerTests.cs
WalletWasabi.Tests/IntegrationTests/LiveServerTests.cs
@@ -68,7 +68,7 @@ namespace WalletWasabi.Tests.IntegrationTests
var client = new SatoshiClient(torHttpClient);
var states = await client.GetAllRoundStatesAsync();
Assert.True(states.NotNullAndNotEmpty());
- Assert.True(states.Count() >= 1);
+ Assert.True(states.Any());
}
[Theory]

MODIFY
WalletWasabi.Tests/RegressionTests/SendTests.cs
WalletWasabi.Tests/RegressionTests/SendTests.cs
@@ -742,7 +742,7 @@ namespace WalletWasabi.Tests.RegressionTests
Assert.Empty(wallet.Coins);
var tx0Id = await rpc.SendToAddressAsync(key.GetP2wpkhAddress(network), Money.Coins(1m), replaceable: true);
- while (wallet.Coins.Count() == 0)
+ while (!wallet.Coins.Any())
{
await Task.Delay(500); // Waits for the funding transaction get to the mempool.
}

CA1827: Do not use Count/LongCount when Any can be used