We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df965b1 commit 63af32aCopy full SHA for 63af32a
test/UnitTest/Services/WebClientServiceTest.cs
@@ -59,11 +59,17 @@ public async Task WebClientOptions_Ok()
59
}
60
61
[Fact]
62
- public async Task Timeout_Ok()
+ public async Task GetClientInfo_Error()
63
{
64
var service = Context.Services.GetRequiredService<WebClientService>();
65
var client = await service.GetClientInfo();
66
+
67
+ // TimeoutException
68
Assert.Null(client.Ip);
69
70
+ // Exception
71
+ Context.JSInterop.SetupVoid("ping", _ => true).SetException(new Exception("test-exception"));
72
+ client = await service.GetClientInfo();
73
74
75
0 commit comments