Added constructor test

Check the ctor for a null IGitHubClient
This commit is contained in:
Roger Tinsley
2016-03-21 19:27:13 +00:00
parent c34d904f1a
commit e57dfa33e2

View File

@@ -9,6 +9,15 @@ namespace Octokit.Tests.Reactive
{ {
public class ObservableRepositoryCommitsClientTests public class ObservableRepositoryCommitsClientTests
{ {
public class TheCtor
{
[Fact]
public void EnsuresArgument()
{
Assert.Throws<ArgumentNullException>(() => new ObservableRepositoryCommitsClient(null));
}
}
public class TheGetSha1Method public class TheGetSha1Method
{ {
[Fact] [Fact]