mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 11:05:56 +00:00
A bunch of unit and integration tests for overloaded version of needed methods for IUserEmailsClient interface were added and impelemented.
Base methods: Task<IReadOnlyList<EmailAddress>> GetAll() Overload methods: Task<IReadOnlyList<EmailAddress>> GetAll(ApiOptions options);
This commit is contained in:
@@ -15,6 +15,14 @@ namespace Octokit.Tests.Integration.Clients
|
||||
Assert.NotEmpty(emails);
|
||||
}
|
||||
|
||||
[IntegrationTest]
|
||||
public async Task CanGetEmailWithApiOptions()
|
||||
{
|
||||
var github = Helper.GetAuthenticatedClient();
|
||||
var emails = await github.User.Email.GetAll(ApiOptions.None);
|
||||
Assert.NotEmpty(emails);
|
||||
}
|
||||
|
||||
const string testEmailAddress = "hahaha-not-a-real-email@foo.com";
|
||||
|
||||
[IntegrationTest(Skip = "this isn't passing in CI - i hate past me right now")]
|
||||
|
||||
Reference in New Issue
Block a user