Corrected TheUpdateMethod.EnsureArgumentsNotNull()

This commit is contained in:
Prayank Mathur
2016-03-17 11:55:44 +05:30
parent f354d1bf00
commit db8738b675
23 changed files with 47 additions and 46 deletions

View File

@@ -404,7 +404,6 @@ namespace Octokit.Tests.Clients
var request = new RepositoryRequest var request = new RepositoryRequest
{ {
Affiliation = RepositoryAffiliation.Owner, Affiliation = RepositoryAffiliation.Owner,
Sort = RepositorySort.FullName Sort = RepositorySort.FullName
}; };

View File

@@ -329,11 +329,11 @@ public class ObservableIssuesClientTests
var gitHubClient = Substitute.For<IGitHubClient>(); var gitHubClient = Substitute.For<IGitHubClient>();
var client = new ObservableIssuesClient(gitHubClient); var client = new ObservableIssuesClient(gitHubClient);
Assert.Throws<ArgumentNullException>(() => client.Create(null, "name", new NewIssue("title"))); Assert.Throws<ArgumentNullException>(() => client.Update(null, "name", 42, new IssueUpdate()));
Assert.Throws<ArgumentException>(() => client.Create("", "name", new NewIssue("x"))); Assert.Throws<ArgumentException>(() => client.Update("", "name", 42, new IssueUpdate()));
Assert.Throws<ArgumentNullException>(() => client.Create("owner", null, new NewIssue("x"))); Assert.Throws<ArgumentNullException>(() => client.Update("owner", null, 42, new IssueUpdate()));
Assert.Throws<ArgumentException>(() => client.Create("owner", "", new NewIssue("x"))); Assert.Throws<ArgumentException>(() => client.Update("owner", "", 42, new IssueUpdate()));
Assert.Throws<ArgumentNullException>(() => client.Create("owner", "name", null)); Assert.Throws<ArgumentNullException>(() => client.Update("owner", "name", 42, null));
} }
} }

View File

@@ -6,8 +6,10 @@ using System.Runtime.InteropServices;
[assembly: AssemblyVersionAttribute("0.19.0")] [assembly: AssemblyVersionAttribute("0.19.0")]
[assembly: AssemblyFileVersionAttribute("0.19.0")] [assembly: AssemblyFileVersionAttribute("0.19.0")]
[assembly: ComVisibleAttribute(false)] [assembly: ComVisibleAttribute(false)]
namespace System { namespace System
internal static class AssemblyVersionInformation { {
internal static class AssemblyVersionInformation
{
internal const string Version = "0.19.0"; internal const string Version = "0.19.0";
} }
} }