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