mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-19 05:35:11 +00:00
Corrected TheUpdateMethod.EnsureArgumentsNotNull()
This commit is contained in:
@@ -88,7 +88,7 @@ namespace Octokit.Tests.Integration
|
||||
|
||||
public static bool IsGitHubEnterpriseEnabled { get { return _gitHubEnterpriseEnabled.Value; } }
|
||||
|
||||
public static Uri GitHubEnterpriseUrl { get { return _gitHubEnterpriseUrl.Value; } }
|
||||
public static Uri GitHubEnterpriseUrl { get { return _gitHubEnterpriseUrl.Value; } }
|
||||
|
||||
public static bool IsUsingToken
|
||||
{
|
||||
|
||||
@@ -404,7 +404,6 @@ namespace Octokit.Tests.Clients
|
||||
|
||||
var request = new RepositoryRequest
|
||||
{
|
||||
|
||||
Affiliation = RepositoryAffiliation.Owner,
|
||||
Sort = RepositorySort.FullName
|
||||
};
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Octokit.Tests
|
||||
|
||||
client.Queue("org");
|
||||
github.Enterprise.SearchIndexing.Received(1).
|
||||
Queue(Arg.Is<string>( "org" ));
|
||||
Queue(Arg.Is<string>("org"));
|
||||
|
||||
client.Queue("org", "repo");
|
||||
github.Enterprise.SearchIndexing.Received(1).
|
||||
|
||||
@@ -329,11 +329,11 @@ public class ObservableIssuesClientTests
|
||||
var gitHubClient = Substitute.For<IGitHubClient>();
|
||||
var client = new ObservableIssuesClient(gitHubClient);
|
||||
|
||||
Assert.Throws<ArgumentNullException>(() => client.Create(null, "name", new NewIssue("title")));
|
||||
Assert.Throws<ArgumentException>(() => client.Create("", "name", new NewIssue("x")));
|
||||
Assert.Throws<ArgumentNullException>(() => client.Create("owner", null, new NewIssue("x")));
|
||||
Assert.Throws<ArgumentException>(() => client.Create("owner", "", new NewIssue("x")));
|
||||
Assert.Throws<ArgumentNullException>(() => client.Create("owner", "name", null));
|
||||
Assert.Throws<ArgumentNullException>(() => client.Update(null, "name", 42, new IssueUpdate()));
|
||||
Assert.Throws<ArgumentException>(() => client.Update("", "name", 42, new IssueUpdate()));
|
||||
Assert.Throws<ArgumentNullException>(() => client.Update("owner", null, 42, new IssueUpdate()));
|
||||
Assert.Throws<ArgumentException>(() => client.Update("owner", "", 42, new IssueUpdate()));
|
||||
Assert.Throws<ArgumentNullException>(() => client.Update("owner", "name", 42, null));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Octokit
|
||||
/// </summary>
|
||||
/// <param name="message">The message.</param>
|
||||
/// <param name="branch">The branch the request is for.</param>
|
||||
protected ContentRequest(string message, string branch): this(message)
|
||||
protected ContentRequest(string message, string branch) : this(message)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(branch, "branch");
|
||||
|
||||
|
||||
@@ -6,8 +6,10 @@ using System.Runtime.InteropServices;
|
||||
[assembly: AssemblyVersionAttribute("0.19.0")]
|
||||
[assembly: AssemblyFileVersionAttribute("0.19.0")]
|
||||
[assembly: ComVisibleAttribute(false)]
|
||||
namespace System {
|
||||
internal static class AssemblyVersionInformation {
|
||||
namespace System
|
||||
{
|
||||
internal static class AssemblyVersionInformation
|
||||
{
|
||||
internal const string Version = "0.19.0";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user