mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-02 19:00:47 +00:00
Integration tests for ObservableEmailsClient
This only tests the GetAll method at this point. Would like to have Delete implemented before testing Add so that we can do cleanup.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user