mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-28 23:06:43 -04:00
Refactored IntegrationTests to work with Nunit3 VS adapter.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user