|
|
|
@ -5,6 +5,7 @@ using FizzWare.NBuilder;
|
|
|
|
|
using FluentAssertions;
|
|
|
|
|
using Moq;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using NzbDrone.Core.DecisionEngine;
|
|
|
|
|
using NzbDrone.Core.Tv;
|
|
|
|
|
using NzbDrone.Core.Model;
|
|
|
|
|
using NzbDrone.Core.Model.Notification;
|
|
|
|
@ -57,7 +58,7 @@ namespace NzbDrone.Core.Test.ProviderTests.SearchTests.EpisodeSearchTests
|
|
|
|
|
.CheckReport(_series, new {Episode = _episode}, _episodeParseResult, _searchHistoryItem)
|
|
|
|
|
.SearchError
|
|
|
|
|
.Should()
|
|
|
|
|
.Be(ReportRejectionType.WrongSeason);
|
|
|
|
|
.Be(ReportRejectionReasons.WrongSeason);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
@ -69,7 +70,7 @@ namespace NzbDrone.Core.Test.ProviderTests.SearchTests.EpisodeSearchTests
|
|
|
|
|
.CheckReport(_series, new { Episode = _episode }, _episodeParseResult, _searchHistoryItem)
|
|
|
|
|
.SearchError
|
|
|
|
|
.Should()
|
|
|
|
|
.Be(ReportRejectionType.WrongEpisode);
|
|
|
|
|
.Be(ReportRejectionReasons.WrongEpisode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
@ -79,7 +80,7 @@ namespace NzbDrone.Core.Test.ProviderTests.SearchTests.EpisodeSearchTests
|
|
|
|
|
.CheckReport(_series, new { Episode = _episode }, _episodeParseResult, _searchHistoryItem)
|
|
|
|
|
.SearchError
|
|
|
|
|
.Should()
|
|
|
|
|
.Be(ReportRejectionType.None);
|
|
|
|
|
.Be(ReportRejectionReasons.None);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
@ -94,7 +95,7 @@ namespace NzbDrone.Core.Test.ProviderTests.SearchTests.EpisodeSearchTests
|
|
|
|
|
.CheckReport(_series, new { Episode = _episode }, _episodeParseResult, _searchHistoryItem)
|
|
|
|
|
.SearchError
|
|
|
|
|
.Should()
|
|
|
|
|
.Be(ReportRejectionType.WrongSeason);
|
|
|
|
|
.Be(ReportRejectionReasons.WrongSeason);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
@ -109,7 +110,7 @@ namespace NzbDrone.Core.Test.ProviderTests.SearchTests.EpisodeSearchTests
|
|
|
|
|
.CheckReport(_series, new { Episode = _episode }, _episodeParseResult, _searchHistoryItem)
|
|
|
|
|
.SearchError
|
|
|
|
|
.Should()
|
|
|
|
|
.Be(ReportRejectionType.WrongEpisode);
|
|
|
|
|
.Be(ReportRejectionReasons.WrongEpisode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
@ -125,7 +126,7 @@ namespace NzbDrone.Core.Test.ProviderTests.SearchTests.EpisodeSearchTests
|
|
|
|
|
.CheckReport(_series, new { Episode = _episode }, _episodeParseResult, _searchHistoryItem)
|
|
|
|
|
.SearchError
|
|
|
|
|
.Should()
|
|
|
|
|
.Be(ReportRejectionType.None);
|
|
|
|
|
.Be(ReportRejectionReasons.None);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|