Add Ctor classes to tests.

This commit is contained in:
Devesh Khandelwal
2016-04-19 14:27:13 +05:30
parent 798fe1f592
commit fe4108f34e
2 changed files with 22 additions and 1 deletions
@@ -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]
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using NSubstitute;
using Octokit.Reactive;
using Xunit;
@@ -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]