1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-17 15:02:34 +02:00

Fixed tests for EpisodeFileMovingService

This commit is contained in:
Mark McDowall 2016-09-02 12:26:04 -07:00
parent 6ac9e5ec18
commit aa37b65842
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ public void Setup()
.Setup(s => s.BuildSeasonPath(It.IsAny<Series>(), It.IsAny<int>())) .Setup(s => s.BuildSeasonPath(It.IsAny<Series>(), It.IsAny<int>()))
.Returns(@"C:\Test\TV\Series\Season 01".AsOsAgnostic()); .Returns(@"C:\Test\TV\Series\Season 01".AsOsAgnostic());
var rootFolder = @"C:\Test\TV".AsOsAgnostic(); var rootFolder = @"C:\Test\TV\".AsOsAgnostic();
Mocker.GetMock<IDiskProvider>() Mocker.GetMock<IDiskProvider>()
.Setup(s => s.FolderExists(rootFolder)) .Setup(s => s.FolderExists(rootFolder))
.Returns(true); .Returns(true);

View File

@ -194,7 +194,7 @@ private void CreateFolder(string directoryName)
{ {
Ensure.That(directoryName, () => directoryName).IsNotNullOrWhiteSpace(); Ensure.That(directoryName, () => directoryName).IsNotNullOrWhiteSpace();
var parentFolder = Path.GetDirectoryName(directoryName); var parentFolder = new OsPath(directoryName).Directory.FullPath;
if (!_diskProvider.FolderExists(parentFolder)) if (!_diskProvider.FolderExists(parentFolder))
{ {
CreateFolder(parentFolder); CreateFolder(parentFolder);