Skip to content

Commit

Permalink
Add Ctor classes to tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
devkhan committed May 20, 2016
1 parent 798fe1f commit fe4108f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Octokit.Tests/Clients/MigrationsClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ namespace Octokit.Tests.Clients
{
public class MigrationsClientTests
{
public class TheCtor
{
[Fact]
public void EnsuresNonNullArguments()
{
Assert.Throws<ArgumentNullException>(
() => new EventsClient(null));
}
}

public class TheGetMethod
{
[Fact]
Expand Down
13 changes: 12 additions & 1 deletion Octokit.Tests/Reactive/ObservableMigrationsClientTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using NSubstitute;
using Octokit.Reactive;
using Xunit;
Expand All @@ -7,6 +8,16 @@ namespace Octokit.Tests.Reactive
{
public class ObservableMigrationsClientTests
{
public class TheCtor
{
[Fact]
public void EnsuresNonNullArguments()
{
Assert.Throws<ArgumentNullException>(
() => new EventsClient(null));
}
}

public class TheStartMethod
{
[Fact]
Expand Down

0 comments on commit fe4108f

Please sign in to comment.