Update Repository to include WatchersCount (#2182)

This commit is contained in:
KarolGrzesiak
2020-06-07 19:11:56 +02:00
committed by GitHub
parent 1c026db1a9
commit 62c0b1fe08
2 changed files with 9 additions and 3 deletions
@@ -655,10 +655,11 @@ public class RepositoriesClientTests
var repository = await github.Repository.Get("haacked", "seegit");
Assert.Equal("https://github.com/Haacked/SeeGit.git", repository.CloneUrl);
Assert.Equal("https://github.com/Haacked/SeeGit.git", repository.CloneUrl, ignoreCase: true);
Assert.False(repository.Private);
Assert.False(repository.Fork);
Assert.Equal(AccountType.User, repository.Owner.Type);
Assert.True(repository.WatchersCount > 0);
}
[IntegrationTest]
@@ -668,10 +669,11 @@ public class RepositoriesClientTests
var repository = await github.Repository.Get(3622414);
Assert.Equal("https://github.com/Haacked/SeeGit.git", repository.CloneUrl);
Assert.Equal("https://github.com/Haacked/SeeGit.git", repository.CloneUrl, ignoreCase: true);
Assert.False(repository.Private);
Assert.False(repository.Fork);
Assert.Equal(AccountType.User, repository.Owner.Type);
Assert.True(repository.WatchersCount > 0);
}
[IntegrationTest]