mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-09 21:09:51 +00:00
O-Issues, O-Milestones, O-OrgMembers
This commit is contained in:
@@ -6,6 +6,7 @@ using Octokit.Tests.Helpers;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reactive.Linq;
|
||||
using System.Reactive.Threading.Tasks;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
|
||||
@@ -29,10 +30,10 @@ public class ObservableIssuesClientTests
|
||||
{
|
||||
var client = new ObservableIssuesClient(Substitute.For<IGitHubClient>());
|
||||
|
||||
await AssertEx.Throws<ArgumentNullException>(async () => await client.Get(null, "name", 1));
|
||||
await AssertEx.Throws<ArgumentNullException>(async () => await client.Get("owner", null, 1));
|
||||
await AssertEx.Throws<ArgumentException>(async () => await client.Get(null, "", 1));
|
||||
await AssertEx.Throws<ArgumentException>(async () => await client.Get("", null, 1));
|
||||
await Assert.ThrowsAsync<ArgumentNullException>(() => client.Get(null, "name", 1).ToTask());
|
||||
await Assert.ThrowsAsync<ArgumentNullException>(() => client.Get("owner", null, 1).ToTask());
|
||||
await Assert.ThrowsAsync<ArgumentException>(() => client.Get(null, "", 1).ToTask());
|
||||
await Assert.ThrowsAsync<ArgumentException>(() => client.Get("", null, 1).ToTask());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user