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:
parent
56c6466c9f
commit
318c1ef120
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user