the test, it passes

This commit is contained in:
Brendan Forster
2015-05-31 20:57:05 +09:30
parent 74ac314e34
commit 3859ff3627
4 changed files with 17 additions and 5 deletions
@@ -3,7 +3,6 @@ using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using Octokit;
using Octokit.Tests.Helpers;
using Octokit.Tests.Integration;
using Xunit;
@@ -538,6 +537,20 @@ public class RepositoriesClientTests
Assert.Equal("https://github.com/Haacked/libgit2sharp.git", repository.CloneUrl);
Assert.True(repository.Fork);
}
[IntegrationTest]
public async Task ReturnsRedirectedRepository()
{
var github = Helper.GetAuthenticatedClient();
var repository = await github.Repository.Get("robconery", "massive");
Assert.Equal("https://github.com/FransBouma/Massive.git", repository.CloneUrl);
Assert.False(repository.Private);
Assert.False(repository.Fork);
Assert.Equal(AccountType.User, repository.Owner.Type);
}
}