mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 20:13:40 +00:00
O-Followers, O-Gists, O-IssuesComments
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reactive.Linq;
|
||||
using System.Reactive.Threading.Tasks;
|
||||
using System.Threading.Tasks;
|
||||
using NSubstitute;
|
||||
using Octokit;
|
||||
@@ -22,11 +23,11 @@ namespace Octokit.Tests.Reactive
|
||||
{
|
||||
var client = new ObservableGistsClient(Substitute.For<IGitHubClient>());
|
||||
|
||||
await AssertEx.Throws<ArgumentNullException>(async () => await client.GetAllCommits(null));
|
||||
await AssertEx.Throws<ArgumentException>(async () => await client.GetAllCommits(""));
|
||||
await Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllCommits(null).ToTask());
|
||||
await Assert.ThrowsAsync<ArgumentException>(() => client.GetAllCommits("").ToTask());
|
||||
|
||||
await AssertEx.Throws<ArgumentNullException>(async () => await client.GetAllForks(null));
|
||||
await AssertEx.Throws<ArgumentException>(async () => await client.GetAllForks(""));
|
||||
await Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllForks(null).ToTask());
|
||||
await Assert.ThrowsAsync<ArgumentException>(() => client.GetAllForks("").ToTask());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user