mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-08 20:45:51 +00:00
Some more changes in tests
This commit is contained in:
@@ -185,7 +185,7 @@ namespace Octokit.Tests.Clients
|
||||
}
|
||||
}
|
||||
|
||||
public class TheLockIssueMethod
|
||||
public class TheLockMethod
|
||||
{
|
||||
[Fact]
|
||||
public void PostsToCorrectUrl()
|
||||
@@ -195,7 +195,7 @@ namespace Octokit.Tests.Clients
|
||||
|
||||
client.Lock("fake", "repo", 42);
|
||||
|
||||
connection.Received().Put(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/42/lock"));
|
||||
connection.Received().Put<Issue>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/42/lock"), Arg.Is<string>(u => u.ToString() == "application/vnd.github.the-key-preview+json"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -211,7 +211,7 @@ namespace Octokit.Tests.Clients
|
||||
}
|
||||
}
|
||||
|
||||
public class TheUnlockIssueMethod
|
||||
public class TheUnlockMethod
|
||||
{
|
||||
[Fact]
|
||||
public void PostsToCorrectUrl()
|
||||
@@ -221,7 +221,7 @@ namespace Octokit.Tests.Clients
|
||||
|
||||
client.Unlock("fake", "repo", 42);
|
||||
|
||||
connection.Received().Delete(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/42/lock"));
|
||||
connection.Received().Delete(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/42/lock"), Arg.Is<string>(u => u.ToString() == "application/vnd.github.the-key-preview+json"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -337,10 +337,10 @@ public class ObservableIssuesClientTests
|
||||
}
|
||||
}
|
||||
|
||||
public class TheLockIssueMethod
|
||||
public class TheLockMethod
|
||||
{
|
||||
[Fact]
|
||||
public void LockIssue()
|
||||
public void LocksIssue()
|
||||
{
|
||||
var gitHubClient = Substitute.For<IGitHubClient>();
|
||||
var client = new ObservableIssuesClient(gitHubClient);
|
||||
@@ -362,10 +362,10 @@ public class ObservableIssuesClientTests
|
||||
}
|
||||
}
|
||||
|
||||
public class TheUnlockIssueMethod
|
||||
public class TheUnlockMethod
|
||||
{
|
||||
[Fact]
|
||||
public void UnlockIssue()
|
||||
public void UnlocksIssue()
|
||||
{
|
||||
var gitHubClient = Substitute.For<IGitHubClient>();
|
||||
var client = new ObservableIssuesClient(gitHubClient);
|
||||
|
||||
@@ -17,6 +17,5 @@
|
||||
public const string IssueLockingUnlockingApiPreview = "application/vnd.github.the-key-preview+json";
|
||||
|
||||
public const string CommitReferenceSha1Preview = "application/vnd.github.chitauri-preview+sha";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user