Some tests were added.

This commit is contained in:
aedampir@gmail.com
2016-03-29 19:45:47 +07:00
parent 8e2fee0752
commit 1ae8235a96
@@ -57,6 +57,15 @@ namespace Octokit.Tests.Reactive
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()