1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-31 16:02:29 +01:00
Sonarr/NzbDrone.Integration.Test/SeriesTest.cs

34 lines
829 B
C#
Raw Normal View History

2013-04-21 00:14:41 +02:00
using System.Net;
using FluentAssertions;
2013-04-19 06:46:18 +02:00
using NUnit.Framework;
using NzbDrone.Api.Series;
namespace NzbDrone.Integration.Test
{
[TestFixture]
public class SeriesTest : SmokeTestBase
{
[Test]
public void should_have_no_series_on_start_application()
{
Series.GetAll().Should().BeEmpty();
}
[Test]
public void series_lookup_on_trakt()
{
var series = Series.Lookup("archer");
series.Should().NotBeEmpty();
series.Should().Contain(c => c.Title == "Archer (2009)");
}
[Test]
2013-04-21 00:14:41 +02:00
public void add_series_without_required_fields_should_return_badrequest()
2013-04-19 06:46:18 +02:00
{
2013-04-21 00:14:41 +02:00
var errors = Series.InvalidPost(new SeriesResource());
errors.Should().NotBeEmpty();
2013-04-19 06:46:18 +02:00
}
}
}