Refactored IntegrationTests to work with Nunit3 VS adapter.

This commit is contained in:
Taloth Saldono
2016-04-04 19:40:51 +02:00
parent 2fa3873503
commit 71ecc96c70
36 changed files with 804 additions and 318 deletions
@@ -0,0 +1,44 @@
using System.Linq;
using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Test.Common;
namespace NzbDrone.Integration.Test.ApiTests
{
[TestFixture]
public class DownloadClientFixture : IntegrationTest
{
[Test]
public void should_be_able_to_add()
{
var schema = DownloadClients.Schema().First(v => v.Implementation == "UsenetBlackhole");
schema.Enable = true;
schema.Name = "Test UsenetBlackhole";
schema.Fields.First(v => v.Name == "WatchFolder").Value = GetTempDirectory("Download", "UsenetBlackhole", "Watch");
schema.Fields.First(v => v.Name == "NzbFolder").Value = GetTempDirectory("Download", "UsenetBlackhole", "Nzb");
var result = DownloadClients.Post(schema);
result.Enable.Should().BeTrue();
}
[Test]
public void should_be_able_to_get()
{
Assert.Ignore("TODO");
}
[Test]
public void should_be_able_to_get_by_id()
{
Assert.Ignore("TODO");
}
[Test]
public void should_be_enabled()
{
Assert.Ignore("TODO");
}
}
}