Utilize discard wherever can: _
MODIFY
WalletWasabi.Tests/P2pTests.cs
WalletWasabi.Tests/P2pTests.cs
@@ -87,7 +87,7 @@ namespace WalletWasabi.Tests
MinVersion = ProtocolVersion_WITNESS_VERSION
});
WalletService walletService = new WalletService(
- KeyManager.CreateNew(out Mnemonic mnemonic, "password"),
+ KeyManager.CreateNew(out Mnemonic _, "password"),
new IndexDownloader(network, Path.Combine(SharedFixture.DataDir, nameof(TestServicesAsync), "IndexDownloader.txt"), new Uri("http://localhost:12345")),
memPoolService,
nodes,
@@ -211,7 +211,7 @@ namespace WalletWasabi.Tests
// Test initial synchronization.
var times = 0;
uint256 firstHash = await rpc.GetBlockHashAsync(0);
- while (indexBuilderService.GetFilterLinesExcluding(firstHash, out bool found6).Count() != 101)
+ while (indexBuilderService.GetFilterLinesExcluding(firstHash, out bool _).Count() != 101)
{
if (times > 500) // 30 sec
{

MODIFY
WalletWasabi.Tests/RegTests.cs
WalletWasabi.Tests/RegTests.cs
@@ -256,7 +256,7 @@ namespace WalletWasabi.Tests
await AssertFiltersInitializedAsync();
var network = Network.RegTest;
- var keyManager = KeyManager.CreateNew(out Mnemonic mnemonic, "password");
+ var keyManager = KeyManager.CreateNew(out Mnemonic _, "password");
// Mine some coins, make a few bech32 transactions then make it confirm.
await Global.RpcClient.GenerateAsync(1);
@@ -416,7 +416,7 @@ namespace WalletWasabi.Tests
var indexDownloader = new IndexDownloader(Global.RpcClient.Network, indexFilePath, new Uri(RegTestFixture.BackendEndPoint));
// 4. Create key manager service.
- var keyManager = KeyManager.CreateNew(out Mnemonic mnemonic, "password");
+ var keyManager = KeyManager.CreateNew(out Mnemonic _, "password");
// 5. Create wallet service.
var blocksFolderPath = Path.Combine(SharedFixture.DataDir, nameof(WalletTestsAsync), $"Blocks");
@@ -642,7 +642,7 @@ namespace WalletWasabi.Tests
var indexDownloader = new IndexDownloader(Global.RpcClient.Network, indexFilePath, new Uri(RegTestFixture.BackendEndPoint));
// 4. Create key manager service.
- var keyManager = KeyManager.CreateNew(out Mnemonic mnemonic, "password");
+ var keyManager = KeyManager.CreateNew(out Mnemonic _, "password");
// 5. Create wallet service.
var blocksFolderPath = Path.Combine(SharedFixture.DataDir, nameof(SendTestsFromHiddenWalletAsync), $"Blocks");
@@ -1009,7 +1009,7 @@ namespace WalletWasabi.Tests
var indexDownloader = new IndexDownloader(Global.RpcClient.Network, indexFilePath, new Uri(RegTestFixture.BackendEndPoint));
// 4. Create key manager service.
- var keyManager = KeyManager.CreateNew(out Mnemonic mnemonic, "password");
+ var keyManager = KeyManager.CreateNew(out Mnemonic _, "password");
// 5. Create wallet service.
var blocksFolderPath = Path.Combine(SharedFixture.DataDir, nameof(SendTestsFromHiddenWalletAsync), $"Blocks");
@@ -1167,7 +1167,7 @@ namespace WalletWasabi.Tests
var indexDownloader = new IndexDownloader(Global.RpcClient.Network, indexFilePath, new Uri(RegTestFixture.BackendEndPoint));
// 4. Create key manager service.
- var keyManager = KeyManager.CreateNew(out Mnemonic mnemonic, "password");
+ var keyManager = KeyManager.CreateNew(out Mnemonic _, "password");
// 5. Create wallet service.
var blocksFolderPath = Path.Combine(SharedFixture.DataDir, nameof(SendTestsFromHiddenWalletAsync), $"Blocks");
@@ -1324,7 +1324,7 @@ namespace WalletWasabi.Tests
new IndexDownloader(Global.RpcClient.Network, indexFilePath, new Uri(RegTestFixture.BackendEndPoint));
// 4. Create key manager service.
- var keyManager = KeyManager.CreateNew(out Mnemonic mnemonic, "password");
+ var keyManager = KeyManager.CreateNew(out Mnemonic _, "password");
// 5. Create wallet service.
var blocksFolderPath = Path.Combine(SharedFixture.DataDir, nameof(SendTestsFromHiddenWalletAsync), $"Blocks");

Utilize discard wherever can: _