mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-23 07:35:25 +00:00
This only tests the GetAll method at this point. Would like to have Delete implemented before testing Add so that we can do cleanup.
25 lines
625 B
C#
25 lines
625 B
C#
using Octokit.Reactive;
|
|
using System.Net.Http.Headers;
|
|
using System.Reactive.Linq;
|
|
using System.Threading.Tasks;
|
|
using Xunit;
|
|
|
|
namespace Octokit.Tests.Integration
|
|
{
|
|
public class ObservableUserEmailsClientTests
|
|
{
|
|
[IntegrationTest]
|
|
public async Task CanGetEmail()
|
|
{
|
|
var github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
|
|
{
|
|
Credentials = Helper.Credentials
|
|
};
|
|
var client = new ObservableUserEmailsClient(github);
|
|
|
|
var email = await client.GetAll();
|
|
Assert.NotNull(email);
|
|
}
|
|
}
|
|
}
|