remove unit test, focusing on the refactor instead.
MODIFY
WalletWasabi.Tests/UnitTests/Wallet/SmartCoinSelectorTests.cs
WalletWasabi.Tests/UnitTests/Wallet/SmartCoinSelectorTests.cs
@@ -40,83 +40,6 @@ public class SmartCoinSelectorTests
Assert.Equal(0.3m, theOnlyOne.Amount.ToUnit(MoneyUnit.BTC));
}
- [Fact]
- public void TestUIH()
- {
- var smartCoins = GenerateSmartCoins(
- new List<(string Cluster, decimal amount)>()
- {
- ("Alice", 0.0001m),
- ("Alice", 0.02097152m),
- ("Alice", 2.58280326m),
- ("Alice", 0.00531441m),
- ("Alice", 0.03188646m),
- ("Alice", 0.0001m),
- ("Alice", 0.001m),
- ("Alice", 0.002m),
- ("Alice", 0.02097152m),
- ("Alice", 0.1m),
- ("Alice", 0.05m),
- ("Alice", 0.00016384m),
- ("Alice", 0.002m),
- ("Alice", 0.00039366m),
- ("Alice", 0.0001m),
- ("Alice", 0.00531441m),
- ("Alice", 0.01062882m),
- ("Alice", 0.00354294m),
- ("Alice", 0.00013122m),
- ("Alice", 0.001m),
- ("Alice", 0.00016384m),
- ("Alice", 0.02097152m),
- ("Alice", 0.00016384m),
- ("Alice", 0.2m),
- ("Alice", 1m),
- ("Alice", 0.002m),
- ("Alice", 1m),
- }
- ).ToList();
-
-
- output.WriteLine($"SmartCointSelector Input:");
-
- foreach (var coin in smartCoins)
- {
- output.WriteLine($"Coin Amount: {coin.Amount}");
- }
-
- output.WriteLine($"Input Sum {smartCoins.Sum(x=>x.Amount.ToDecimal(MoneyUnit.BTC))} BTC\n");
-
- var changeThreshold = 1.06135855m;
-
- output.WriteLine($"Inputs that sums up to {changeThreshold}:");
-
- var sum = 0m;
-
- foreach (var coin in smartCoins.OrderBy(x=>x.Amount))
- {
- var btcAmount = coin.Amount.ToDecimal(MoneyUnit.BTC);
- if (sum + btcAmount > changeThreshold)
- {
- break;
- }
-
- sum += btcAmount;
- output.WriteLine($"Coin Amount: {coin.Amount}");
- }
-
- var selector = new SmartCoinSelector(smartCoins);
- var coinsToSpend = selector.Select(Enumerable.Empty<Coin>(), Money.Coins(4m)).ToList();
-
- output.WriteLine($"\nSmartCointSelector Output:");
-
- foreach (var coin in coinsToSpend)
- {
- output.WriteLine($"Coin Amount: {coin.Amount}");
- }
-
- output.WriteLine($"Output Sum {coinsToSpend.Select(x=>x.Amount).Cast<Money>().Sum(x=>x.ToDecimal(MoneyUnit.BTC))} BTC");
- }
-
[Fact]
public void PreferLessCoinsOverExactAmount()
{

remove unit test, focusing on the refactor instead.