Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lennartdohmann committed Feb 16, 2024
1 parent a4f27c4 commit a9bb859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotnet/Vaas/test/Vaas.Test/VaasTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public async Task ForSha256Async_SendsUserAgent()
[Fact]
public void Constructor_IfRelativeUrl_ThrowsVaasClientException()
{
var e = Assert.Throws<UriFormatException>(() =>
var e = Assert.Throws<ArgumentException>(() =>
new Vaas(_httpClient, _authenticator.Object, new VaasOptions() { Url = new Uri("/relative") }));
Assert.Equal(
"Invalid URI: The format of the URI could not be determined.",
"Parameter \"options.Url.Host\" (string) must not be null or whitespace, was whitespace. (Parameter 'options.Url.Host')",
e.Message);
}

Expand Down

0 comments on commit a9bb859

Please sign in to comment.