mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 03:01:31 +00:00
Added test for null argument in ctor
This commit is contained in:
@@ -12,6 +12,15 @@ namespace Octokit.Tests.Clients
|
||||
{
|
||||
public class TheGetMethod
|
||||
{
|
||||
public class TheCtor
|
||||
{
|
||||
[Fact]
|
||||
public void EnsuresArgument()
|
||||
{
|
||||
Assert.Throws<ArgumentNullException>(() => new ReferencesClient(null));
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async void EnsuresNonNullArguments()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user