Add more tests to mocks
MODIFY
WalletWasabi.Tests/HwiTests/NoDeviceConnectedTests/MockedDeviceTests.cs
WalletWasabi.Tests/HwiTests/NoDeviceConnectedTests/MockedDeviceTests.cs
@@ -42,7 +42,12 @@ namespace WalletWasabi.Tests.HwiTests.NoDeviceConnectedTests
Assert.Equal(HwiErrorCode.NotInitialized, entry.Code);
Assert.Null(entry.Fingerprint);
- await client.WipeAsync(entry.Type.Value, entry.Path, cts.Token);
+ var deviceType = entry.Type.Value;
+ await Assert.ThrowsAsync<ArgumentNullException>(async () => await client.WipeAsync(deviceType, null, cts.Token));
+ await Assert.ThrowsAsync<ArgumentException>(async () => await client.WipeAsync(deviceType, "", cts.Token));
+ await Assert.ThrowsAsync<ArgumentException>(async () => await client.WipeAsync(deviceType, " ", cts.Token));
+
+ await client.WipeAsync(deviceType, entry.Path, cts.Token);
}
}

MODIFY
WalletWasabi/Hwi2/Parsers/HwiParser.cs
WalletWasabi/Hwi2/Parsers/HwiParser.cs
@@ -223,6 +223,8 @@ namespace WalletWasabi.Hwi2.Parsers
{
version = null;
+ // Order matters! https://github.com/zkSNACKs/WalletWasabi/pull/1905/commits/cecefcc50af140cc06cb93961cda86f9b21db11b
+
// Example output: hwi.exe 1.0.1
if (TryParseVersion(hwiResponse, "hwi.exe", out Version v2))
{

Add more tests to mocks