Fixed broken test

pull/2/head
Mark McDowall 11 years ago
parent 6d46819972
commit d8189260bb

@ -5,11 +5,14 @@ using NUnit.Framework;
using NzbDrone.Common; using NzbDrone.Common;
using NzbDrone.Core.Configuration; using NzbDrone.Core.Configuration;
using NzbDrone.Core.Download.Clients.Nzbget; using NzbDrone.Core.Download.Clients.Nzbget;
using NzbDrone.Core.Parser;
using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.Test.Framework; using NzbDrone.Core.Test.Framework;
using NzbDrone.Core.Tv;
namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetProviderTests namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetProviderTests
{ {
public class QueueFixture : CoreTest public class QueueFixture : CoreTest<NzbgetClient>
{ {
[SetUp] [SetUp]
public void Setup() public void Setup()
@ -49,10 +52,9 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetProviderTests
{ {
WithEmptyQueue(); WithEmptyQueue();
Mocker.Resolve<NzbgetClient>() Subject.GetQueue()
.GetQueue() .Should()
.Should() .BeEmpty();
.BeEmpty();
} }
[Test] [Test]
@ -60,10 +62,13 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetProviderTests
{ {
WithFullQueue(); WithFullQueue();
Mocker.Resolve<NzbgetClient>() Mocker.GetMock<IParsingService>()
.GetQueue() .Setup(s => s.Map(It.IsAny<ParsedEpisodeInfo>(), 0, null))
.Should() .Returns(new RemoteEpisode {Series = new Series()});
.HaveCount(1);
Subject.GetQueue()
.Should()
.HaveCount(1);
} }
} }
} }

Loading…
Cancel
Save