Files
octokit.net/Octokit.Tests/Reactive/Enterprise/ObservableEnterpriseLicenseClientTests.cs
aedampir@gmail.com d0c8e82453 Red Tests were fixed
Unused 'using' directive were removed.
2016-04-18 12:46:13 +07:00

34 lines
816 B
C#

using System;
using NSubstitute;
using Octokit.Reactive;
using Xunit;
namespace Octokit.Tests
{
public class ObservableEnterpriseLicenseClientTests
{
public class TheCtor
{
[Fact]
public void EnsuresNonNullArguments()
{
Assert.Throws<ArgumentNullException>(
() => new ObservableEnterpriseLicenseClient(null));
}
}
public class TheGetMethod
{
[Fact]
public void CallsIntoClient()
{
var github = Substitute.For<IGitHubClient>();
var client = new ObservableEnterpriseLicenseClient(github);
client.Get();
github.Enterprise.License.Received(1).Get();
}
}
}
}