1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-19 10:54:05 +02:00

35 lines
1.8 KiB
C#
Raw Normal View History

2013-07-18 20:47:55 -07:00
using FizzWare.NBuilder;
2011-06-02 14:06:46 -07:00
using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Test.Framework;
using NzbDrone.Core.Tv.Events;
2011-05-22 09:53:21 -07:00
namespace NzbDrone.Core.Test.TvTests.SeriesServiceTests
2011-05-22 09:53:21 -07:00
{
[TestFixture]
public class AddSeriesFixture : CoreTest<SeriesService>
2011-05-22 09:53:21 -07:00
{
private Series fakeSeries;
2012-10-13 17:54:46 -07:00
[SetUp]
public void Setup()
{
fakeSeries = Builder<Series>.CreateNew().Build();
2012-10-13 17:54:46 -07:00
}
[Test]
public void series_added_event_should_have_proper_path()
2011-05-22 09:53:21 -07:00
{
fakeSeries.Path = null;
fakeSeries.RootFolderPath = @"C:\Test\TV";
var series = Subject.AddSeries(fakeSeries);
series.Path.Should().NotBeNull();
VerifyEventPublished<SeriesAddedEvent>();
}
2011-05-22 09:53:21 -07:00
}
}