Skip to content

Commit

Permalink
Some tests were added.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-efremov committed Mar 29, 2016
1 parent 8e2fee0 commit 1ae8235
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Octokit.Tests/Reactive/ObservableAssigneesClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ public async Task EnsuresNonNullArguments()
Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository(owner, null));
Assert.Throws<ArgumentNullException>(() => client.GetAllForRepository(owner, name, null));
}

[Fact]
public void EnsuresNonEmptyArguments()
{
var client = CreateFixtureWithNonReactiveClient();

Assert.Throws<ArgumentException>(() => client.GetAllForRepository(string.Empty, name));
Assert.Throws<ArgumentException>(() => client.GetAllForRepository(owner, string.Empty));
}
}

private static ObservableAssigneesClient CreateFixtureWithNonReactiveClient()
Expand Down

0 comments on commit 1ae8235

Please sign in to comment.