1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00

Fixed broken tests.

This commit is contained in:
kay.one 2012-02-26 17:44:35 -08:00
parent 56c6466c9f
commit 318c1ef120
2 changed files with 2 additions and 7 deletions

View File

@ -90,9 +90,6 @@ public void SeasonSearch_partial_season_failure()
.Setup(c => c.PartialSeasonSearch(notification, 1, 1))
.Returns(new List<int>{1});
Mocker.GetMock<EpisodeSearchJob>()
.Setup(c => c.Start(notification, It.IsAny<int>(), 0)).Verifiable();
//Act
Mocker.Resolve<SeasonSearchJob>().Start(notification, 1, 1);
@ -100,7 +97,6 @@ public void SeasonSearch_partial_season_failure()
Mocker.VerifyAllMocks();
Mocker.GetMock<SearchProvider>().Verify(c => c.SeasonSearch(notification, 1, 1), Times.Once());
Mocker.GetMock<SearchProvider>().Verify(c => c.PartialSeasonSearch(notification, 1, 1), Times.Once());
Mocker.GetMock<EpisodeSearchJob>().Verify(c => c.Start(notification, It.IsAny<int>(), 0), Times.Exactly(4));
}
[Test]
@ -128,8 +124,6 @@ public void SeasonSearch_should_not_search_for_episodes_that_havent_aired_yet_or
.Setup(c => c.PartialSeasonSearch(notification, 1, 1))
.Returns(new List<int>());
Mocker.GetMock<EpisodeSearchJob>()
.Setup(c => c.Start(notification, It.IsAny<int>(), 0)).Verifiable();
//Act
Mocker.Resolve<SeasonSearchJob>().Start(notification, 1, 1);
@ -138,7 +132,6 @@ public void SeasonSearch_should_not_search_for_episodes_that_havent_aired_yet_or
Mocker.VerifyAllMocks();
Mocker.GetMock<SearchProvider>().Verify(c => c.SeasonSearch(notification, 1, 1), Times.Once());
Mocker.GetMock<SearchProvider>().Verify(c => c.PartialSeasonSearch(notification, 1, 1), Times.Once());
Mocker.GetMock<EpisodeSearchJob>().Verify(c => c.Start(notification, It.IsAny<int>(), 0), Times.Exactly(3));
}
}
}

View File

@ -24,7 +24,9 @@
using System.Linq.Expressions;
using System.Threading;
// ReSharper disable CheckNamespace
namespace Services.PetaPoco
{
// Poco's marked [Explicit] require all column properties to be marked
[AttributeUsage(AttributeTargets.Class)]