From cff584aea55bb95d951611ee3397080a2bf1fbac Mon Sep 17 00:00:00 2001 From: Haroon Date: Fri, 8 Nov 2013 18:39:32 +0000 Subject: [PATCH] update not create issues --- Octokit.Tests/Clients/IssuesClientTests.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Octokit.Tests/Clients/IssuesClientTests.cs b/Octokit.Tests/Clients/IssuesClientTests.cs index e79bde95..da402574 100644 --- a/Octokit.Tests/Clients/IssuesClientTests.cs +++ b/Octokit.Tests/Clients/IssuesClientTests.cs @@ -191,15 +191,15 @@ namespace Octokit.Tests.Clients var client = new IssuesClient(connection); AssertEx.Throws(async () => await - client.Create(null, "name", new NewIssue("title"))); - AssertEx.Throws(async () => await - client.Create("", "name", new NewIssue("x"))); + client.Update(null, "name", 1, new IssueUpdate())); AssertEx.Throws(async () => await - client.Create("owner", null, new NewIssue("x"))); - AssertEx.Throws(async () => await - client.Create("owner", "", new NewIssue("x"))); + client.Update("", "name", 1, new IssueUpdate())); AssertEx.Throws(async () => await - client.Create("owner", "name", null)); + client.Update("owner", null, 1, new IssueUpdate())); + AssertEx.Throws(async () => await + client.Update("owner", "", 1, new IssueUpdate())); + AssertEx.Throws(async () => await + client.Update("owner", "name", 1, null)); } }