Added name for parameter for better readability
MODIFY
WalletWasabi.Tests/UnitTests/BlockchainAnalysis/PubKeyReuseAnonScoreTests.cs
WalletWasabi.Tests/UnitTests/BlockchainAnalysis/PubKeyReuseAnonScoreTests.cs
@@ -19,7 +19,7 @@ namespace WalletWasabi.Tests.UnitTests.BlockchainAnalysis
var km = ServiceFactory.CreateKeyManager();
var reuse = BitcoinFactory.CreateHdPubKey(km);
var tx = BitcoinFactory.CreateSmartTransaction(
- 9,
+ othersInputCount: 9,
Enumerable.Repeat(Money.Coins(1m), 9),
new[] { (Money.Coins(1.1m), 100, BitcoinFactory.CreateHdPubKey(km)) },
new[] { (Money.Coins(1m), HdPubKey.DefaultHighAnonymitySet, reuse) });
@@ -43,7 +43,7 @@ namespace WalletWasabi.Tests.UnitTests.BlockchainAnalysis
var km = ServiceFactory.CreateKeyManager();
var reuse = BitcoinFactory.CreateHdPubKey(km);
var tx = BitcoinFactory.CreateSmartTransaction(
- 9,
+ othersInputCount: 9,
Enumerable.Repeat(Money.Coins(1m), 9),
new[] { (Money.Coins(1.1m), 100, BitcoinFactory.CreateHdPubKey(km)) },
new[] { (Money.Coins(1m), HdPubKey.DefaultHighAnonymitySet, reuse) });
@@ -81,7 +81,7 @@ namespace WalletWasabi.Tests.UnitTests.BlockchainAnalysis
var km = ServiceFactory.CreateKeyManager();
var reuse = BitcoinFactory.CreateHdPubKey(km);
var tx = BitcoinFactory.CreateSmartTransaction(
- 0,
+ othersInputCount: 0,
Enumerable.Empty<Money>(),
new[] { (Money.Coins(1.1m), 100, BitcoinFactory.CreateHdPubKey(km)) },
new[] { (Money.Coins(1m), HdPubKey.DefaultHighAnonymitySet, reuse) });
@@ -105,7 +105,7 @@ namespace WalletWasabi.Tests.UnitTests.BlockchainAnalysis
var km = ServiceFactory.CreateKeyManager();
var key = BitcoinFactory.CreateHdPubKey(km);
var tx = BitcoinFactory.CreateSmartTransaction(
- 0,
+ othersInputCount: 0,
Enumerable.Repeat(Money.Coins(1m), 9),
new[] { (Money.Coins(1.1m), 100, key), (Money.Coins(1.2m), 100, key), (Money.Coins(1.3m), 100, key), (Money.Coins(1.4m), 100, key) },
new[] { (Money.Coins(1m), HdPubKey.DefaultHighAnonymitySet, BitcoinFactory.CreateHdPubKey(km)) });
@@ -124,7 +124,7 @@ namespace WalletWasabi.Tests.UnitTests.BlockchainAnalysis
var km = ServiceFactory.CreateKeyManager();
var key = BitcoinFactory.CreateHdPubKey(km);
var tx = BitcoinFactory.CreateSmartTransaction(
- 0,
+ othersInputCount: 0,
Enumerable.Empty<Money>(),
new[] { (Money.Coins(1.1m), 100, key), (Money.Coins(1.2m), 100, key), (Money.Coins(1.3m), 100, key), (Money.Coins(1.4m), 100, key) },
new[] { (Money.Coins(1m), HdPubKey.DefaultHighAnonymitySet, BitcoinFactory.CreateHdPubKey(km)) });
@@ -142,7 +142,7 @@ namespace WalletWasabi.Tests.UnitTests.BlockchainAnalysis
var km = ServiceFactory.CreateKeyManager();
var key = BitcoinFactory.CreateHdPubKey(km);
var tx = BitcoinFactory.CreateSmartTransaction(
- 9,
+ othersInputCount: 9,
Enumerable.Repeat(Money.Coins(1m), 9),
new[] { (Money.Coins(1.1m), 100, key), (Money.Coins(1.2m), 100, key), (Money.Coins(1.3m), 100, key), (Money.Coins(1.4m), 100, key) },
new[] { (Money.Coins(1m), HdPubKey.DefaultHighAnonymitySet, BitcoinFactory.CreateHdPubKey(km)) });
@@ -160,7 +160,7 @@ namespace WalletWasabi.Tests.UnitTests.BlockchainAnalysis
var analyser = ServiceFactory.CreateBlockchainAnalyzer();
var key = BitcoinFactory.CreateHdPubKey(ServiceFactory.CreateKeyManager());
var tx = BitcoinFactory.CreateSmartTransaction(
- 9,
+ othersInputCount: 9,
Enumerable.Repeat(Money.Coins(1m), 9),
new[] { (Money.Coins(1.1m), 100, key) },
new[] { (Money.Coins(1m), HdPubKey.DefaultHighAnonymitySet, key) });
@@ -178,7 +178,7 @@ namespace WalletWasabi.Tests.UnitTests.BlockchainAnalysis
var analyser = ServiceFactory.CreateBlockchainAnalyzer();
var reuse = BitcoinFactory.CreateHdPubKey(ServiceFactory.CreateKeyManager());
var tx = BitcoinFactory.CreateSmartTransaction(
- 9,
+ othersInputCount: 9,
Enumerable.Repeat(Money.Coins(1m), 9),
new[] { (Money.Coins(1.1m), 100, BitcoinFactory.CreateHdPubKey(ServiceFactory.CreateKeyManager())) },
new[] { (Money.Coins(1m), HdPubKey.DefaultHighAnonymitySet, reuse) });
@@ -199,7 +199,7 @@ namespace WalletWasabi.Tests.UnitTests.BlockchainAnalysis
var km = ServiceFactory.CreateKeyManager();
var key = BitcoinFactory.CreateHdPubKey(km);
var tx = BitcoinFactory.CreateSmartTransaction(
- 9,
+ othersInputCount: 9,
Enumerable.Repeat(Money.Coins(1m), 9).Concat(Enumerable.Repeat(Money.Coins(2m), 7)),
new[] { (Money.Coins(1.1m), 100, BitcoinFactory.CreateHdPubKey(km)) },
new[] { (Money.Coins(1m), HdPubKey.DefaultHighAnonymitySet, key), (Money.Coins(2m), HdPubKey.DefaultHighAnonymitySet, key) });
@@ -220,7 +220,7 @@ namespace WalletWasabi.Tests.UnitTests.BlockchainAnalysis
var km = ServiceFactory.CreateKeyManager();
var key = BitcoinFactory.CreateHdPubKey(km);
var tx = BitcoinFactory.CreateSmartTransaction(
- 9,
+ othersInputCount: 9,
Enumerable.Repeat(Money.Coins(1m), 9).Concat(Enumerable.Repeat(Money.Coins(2m), 8)).Concat(Enumerable.Repeat(Money.Coins(3m), 7)).Concat(Enumerable.Repeat(Money.Coins(4m), 6)).Concat(Enumerable.Repeat(Money.Coins(5m), 5)).Concat(Enumerable.Repeat(Money.Coins(6m), 4)),
new[] { (Money.Coins(1.1m), 100, BitcoinFactory.CreateHdPubKey(km)) },
new[] { (Money.Coins(1m), HdPubKey.DefaultHighAnonymitySet, key), (Money.Coins(2m), HdPubKey.DefaultHighAnonymitySet, key), (Money.Coins(3m), HdPubKey.DefaultHighAnonymitySet, key), (Money.Coins(4m), HdPubKey.DefaultHighAnonymitySet, key), (Money.Coins(5m), HdPubKey.DefaultHighAnonymitySet, key), (Money.Coins(6m), HdPubKey.DefaultHighAnonymitySet, key) });
@@ -243,7 +243,7 @@ namespace WalletWasabi.Tests.UnitTests.BlockchainAnalysis
var equalOutputAmount = Money.Coins(1m);
var reusedTxOut = new TxOut(equalOutputAmount, new Key());
var tx = BitcoinFactory.CreateSmartTransaction(
- 9,
+ othersInputCount: 9,
Common.Repeat(() => new TxOut(equalOutputAmount, new Key()), 7).Concat(new[] { reusedTxOut, reusedTxOut }),
new[] { (Money.Coins(1.1m), 1, BitcoinFactory.CreateHdPubKey(km)) },
new[] { (equalOutputAmount, HdPubKey.DefaultHighAnonymitySet, BitcoinFactory.CreateHdPubKey(km)) });

Added name for parameter for better readability