Filtration/Filtration.Tests/Services/TestHTTPService.cs

24 lines
559 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 void GetContent_FetchesDataFromUrl()
2015-07-02 15:19:32 -04:00
{
// Arrange
var service = new HTTPService();
// Act
var result = service.GetContent("http://ben-wallis.github.io/Filtration/filtration_version.xml");
2015-07-02 15:19:32 -04:00
// Assert
Assert.IsNotNull(result);
}
}
}