Skip to content

Commit 547c65b

Browse files
committed
Asserting on UrlPath being set correctly
1 parent 4af5dbe commit 547c65b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/SendGrid.Tests/Integration.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5998,17 +5998,21 @@ public async Task TestTakesHttpClientFactoryAsConstructorArgumentAndUsesItInHttp
59985998
[Fact]
59995999
public void TestTakesProxyAsConstructorArgumentAndInitiailsesHttpClient()
60006000
{
6001-
var sg = new SendGridClient(new FakeWebProxy(), fixture.apiKey);
6001+
var urlPath = "urlPath";
60026002

6003-
Assert.NotNull(sg);
6003+
var sg = new SendGridClient(new FakeWebProxy(), fixture.apiKey, urlPath: "urlPath");
6004+
6005+
Assert.Equal(sg.UrlPath, urlPath);
60046006
}
60056007

60066008
[Fact]
60076009
public void TestTakesNullProxyAsConstructorArgumentAndInitiailsesHttpClient()
60086010
{
6009-
var sg = new SendGridClient(null as IWebProxy, fixture.apiKey);
6011+
var urlPath = "urlPath";
6012+
6013+
var sg = new SendGridClient(null as IWebProxy, fixture.apiKey, urlPath: "urlPath");
60106014

6011-
Assert.NotNull(sg);
6015+
Assert.Equal(sg.UrlPath, urlPath);
60126016
}
60136017

60146018
/// <summary>

0 commit comments

Comments
 (0)