Filtration/Filtration.Tests/Services/TestHTTPService.cs

24 lines
576 B
C#
Raw Normal View History

2015-07-02 15:19:32 -04:00
using Filtration.Services;
using NUnit.Framework;
namespace Filtration.Tests.Services
{
[Ignore("Integration Test - Makes real HTTP call")]
[TestFixture]
public class TestHTTPService
{
[Test]
public async void GetContent_FetchesDataFromUrl()
{
// Arrange
var service = new HTTPService();
// Act
var result = await service.GetContentAsync("http://ben-wallis.github.io/Filtration/filtration_version.xml");
// Assert
Assert.IsNotNull(result);
}
}
}