Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 67fc879

Browse files
committed
Add test when IResponse not set
1 parent 7ec64ff commit 67fc879

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/GitHub.Exports.UnitTests/ApiExceptionExtensionsTests.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ public void NoGitHubRequestId(string key, bool expect)
2020

2121
Assert.That(result, Is.EqualTo(expect));
2222
}
23+
24+
[Test]
25+
public void NoResponse()
26+
{
27+
var ex = new ApiException();
28+
29+
var result = ApiExceptionExtensions.IsGitHubApiException(ex);
30+
31+
Assert.That(result, Is.EqualTo(false));
32+
}
2333

2434
static ApiException CreateApiException(Dictionary<string, string> headers)
2535
{

0 commit comments

Comments
 (0)