Files
octokit.net/Octokit.Tests.Integration/Reactive/ObservableUserEmailsClientTests.cs
Peter MacNaughton 3f6bb24193 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.
2014-02-08 12:50:45 -07:00

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);
}
}
}