mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 12:03:19 +00:00
fixed errors in tests
This commit is contained in:
@@ -32,7 +32,8 @@ namespace Octokit.Tests.Clients
|
||||
var client = new RepoCollaboratorsClient(connection);
|
||||
|
||||
client.GetAll("owner", "test");
|
||||
connection.Received().GetAll<User>(Arg.Is<Uri>(u => u.ToString() == "repos/owner/test/collaborators"), null, "application/vnd.github.ironman-preview+json", Args.ApiOptions);
|
||||
|
||||
connection.Received().GetAll<User>(Arg.Is<Uri>(u => u.ToString() == "repos/owner/test/collaborators"), Args.ApiOptions);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -42,6 +43,7 @@ namespace Octokit.Tests.Clients
|
||||
var client = new RepoCollaboratorsClient(connection);
|
||||
|
||||
client.GetAll(1);
|
||||
|
||||
connection.Received().GetAll<User>(Arg.Is<Uri>(u => u.ToString() == "repositories/1/collaborators"), Args.ApiOptions);
|
||||
}
|
||||
|
||||
@@ -61,7 +63,7 @@ namespace Octokit.Tests.Clients
|
||||
client.GetAll("owner", "test", options);
|
||||
|
||||
connection.Received()
|
||||
.GetAll<User>(Arg.Is<Uri>(u => u.ToString() == "repos/owner/test/collaborators"), null, "application/vnd.github.ironman-preview+json", options);
|
||||
.GetAll<User>(Arg.Is<Uri>(u => u.ToString() == "repos/owner/test/collaborators"), options);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user