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:
Peter MacNaughton
2014-02-08 12:50:45 -07:00
parent a81a4d9a77
commit 3f6bb24193
2 changed files with 25 additions and 0 deletions
@@ -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);
}
}
}