|
|
@ -169,15 +169,15 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests
|
|
|
|
var fakeSeries = Builder<Series>.CreateNew().Build();
|
|
|
|
var fakeSeries = Builder<Series>.CreateNew().Build();
|
|
|
|
|
|
|
|
|
|
|
|
//Mocks
|
|
|
|
//Mocks
|
|
|
|
|
|
|
|
Mocker.GetMock<DiskProvider>(MockBehavior.Strict)
|
|
|
|
|
|
|
|
.Setup(e => e.IsChildOfPath(fileName, fakeSeries.Path)).Returns(false);
|
|
|
|
|
|
|
|
|
|
|
|
With50MBFile();
|
|
|
|
With50MBFile();
|
|
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<MediaFileProvider>()
|
|
|
|
Mocker.GetMock<MediaFileProvider>()
|
|
|
|
.Setup(p => p.Exists(It.IsAny<String>()))
|
|
|
|
.Setup(p => p.Exists(It.IsAny<String>()))
|
|
|
|
.Returns(false);
|
|
|
|
.Returns(false);
|
|
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<DiskProvider>(MockBehavior.Strict)
|
|
|
|
|
|
|
|
.Setup(e => e.IsChildOfPath(fileName, fakeSeries.Path)).Returns(false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<EpisodeProvider>()
|
|
|
|
Mocker.GetMock<EpisodeProvider>()
|
|
|
|
.Setup(c => c.GetEpisodesByParseResult(It.IsAny<EpisodeParseResult>()))
|
|
|
|
.Setup(c => c.GetEpisodesByParseResult(It.IsAny<EpisodeParseResult>()))
|
|
|
|
.Returns(new List<Episode>());
|
|
|
|
.Returns(new List<Episode>());
|
|
|
@ -406,6 +406,8 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests
|
|
|
|
|
|
|
|
|
|
|
|
const string path = @"C:\Test\Unsorted TV\30 Rock\30.rock.s01e01.pilot.mkv";
|
|
|
|
const string path = @"C:\Test\Unsorted TV\30 Rock\30.rock.s01e01.pilot.mkv";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
With50MBFile();
|
|
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<EpisodeProvider>().Setup(s => s.GetEpisodesByParseResult(It.IsAny<EpisodeParseResult>()))
|
|
|
|
Mocker.GetMock<EpisodeProvider>().Setup(s => s.GetEpisodesByParseResult(It.IsAny<EpisodeParseResult>()))
|
|
|
|
.Returns(new List<Episode>());
|
|
|
|
.Returns(new List<Episode>());
|
|
|
|
|
|
|
|
|
|
|
@ -427,6 +429,8 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskScanProviderTests
|
|
|
|
|
|
|
|
|
|
|
|
const string path = @"C:\Test\TV\30 Rock\30.rock.s01e01.pilot.mkv";
|
|
|
|
const string path = @"C:\Test\TV\30 Rock\30.rock.s01e01.pilot.mkv";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
With50MBFile();
|
|
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<EpisodeProvider>().Setup(s => s.GetEpisodesByParseResult(It.IsAny<EpisodeParseResult>()))
|
|
|
|
Mocker.GetMock<EpisodeProvider>().Setup(s => s.GetEpisodesByParseResult(It.IsAny<EpisodeParseResult>()))
|
|
|
|
.Returns(new List<Episode>());
|
|
|
|
.Returns(new List<Episode>());
|
|
|
|
|
|
|
|
|
|
|
|