Make sure exception is thrown.
MODIFY
WalletWasabi.Tests/UnitTests/Hwi/DefaultResponseTests.cs
WalletWasabi.Tests/UnitTests/Hwi/DefaultResponseTests.cs
using NBitcoin;
using System;
using System.Collections.Generic;
+using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
@@ -145,10 +146,17 @@ namespace WalletWasabi.Tests.UnitTests.Hwi
HwiProcessBridge pb = new HwiProcessBridge();
using (var cts = new CancellationTokenSource(ReasonableRequestTimeout))
+ {
+ if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
var res = await pb.SendCommandAsync("enumerate", true, cts.Token);
Assert.NotEmpty(res.response);
}
+ else
+ {
+ await Assert.ThrowsAsync<PlatformNotSupportedException>(async () => await pb.SendCommandAsync("enumerate", true, cts.Token));
+ }
+ }
}
#endregion Tests

Make sure exception is thrown.