Added ExchangeRates test, using NotNullAndNotEmpty
MODIFY
WalletWasabi.Tests/LiveServerTests.cs
WalletWasabi.Tests/LiveServerTests.cs
@@ -27,8 +27,7 @@ namespace WalletWasabi.Tests
{
var feeEstimationPairs = await client.GetFeesAsync(1000);
- Assert.NotNull(feeEstimationPairs);
- Assert.NotEmpty(feeEstimationPairs);
+ Assert.True(feeEstimationPairs.NotNullAndNotEmpty());
}
}
@@ -47,5 +46,18 @@ namespace WalletWasabi.Tests
Assert.True(filters.Count() == 2);
}
}
+
+ [Theory]
+ [InlineData(NetworkType.Mainnet)]
+ [InlineData(NetworkType.Testnet)]
+ public async Task GetExchangeRatesAsync(NetworkType network)
+ {
+ using (var client = new WasabiClient(_networkUriMappings[network]))
+ {
+ var exchangeRates = await client.GetExchangeRatesAsync();
+
+ Assert.True(exchangeRates.NotNullAndNotEmpty());
+ }
+ }
}
}

Added ExchangeRates test, using NotNullAndNotEmpty