mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 14:15:12 +00:00
24 lines
568 B
C#
24 lines
568 B
C#
using System;
|
|
using NSubstitute;
|
|
using Octokit;
|
|
using Xunit;
|
|
|
|
public class GitDatabaseClientTests
|
|
{
|
|
public class TheCtor
|
|
{
|
|
[Fact]
|
|
public void EnsuresArgument()
|
|
{
|
|
Assert.Throws<ArgumentNullException>(() => new GitDatabaseClient(null));
|
|
}
|
|
|
|
[Fact]
|
|
public void SetChildClients()
|
|
{
|
|
var apiConnection = Substitute.For<IApiConnection>();
|
|
var gitDatabaseClient = new GitDatabaseClient(apiConnection);
|
|
Assert.NotNull(gitDatabaseClient.Tag);
|
|
}
|
|
}
|
|
} |