fixed errors in tests

This commit is contained in:
aedampir@gmail.com
2016-05-23 15:05:18 +07:00
parent 67e52d9879
commit 0ce177b90c
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using NSubstitute;
@@ -249,7 +248,7 @@ namespace Octokit.Tests.Clients
await Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllAssets("owner", null, 1));
await Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllAssets(null, null, 1, null));
await Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllAssets(null, null, 1, Args.ApiOptions));
await Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllAssets(null, null, 1, ApiOptions.None));
await Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllAssets(null, "name", 1, null));
await Assert.ThrowsAsync<ArgumentNullException>(() => client.GetAllAssets("owner", null, 1, null));
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Reactive.Linq;
using NSubstitute;
using Octokit.Reactive;
using Xunit;
@@ -218,7 +217,7 @@ namespace Octokit.Tests.Reactive
Assert.Throws<ArgumentNullException>(() => client.GetAllAssets("owner", null, 1));
Assert.Throws<ArgumentNullException>(() => client.GetAllAssets(null, null, 1, null));
Assert.Throws<ArgumentNullException>(() => client.GetAllAssets(null, null, 1, Args.ApiOptions));
Assert.Throws<ArgumentNullException>(() => client.GetAllAssets(null, null, 1, ApiOptions.None));
Assert.Throws<ArgumentNullException>(() => client.GetAllAssets(null, "name", 1, null));
Assert.Throws<ArgumentNullException>(() => client.GetAllAssets("owner", null, 1, null));