mirror of https://github.com/Sonarr/Sonarr
fixed broken tests.
This commit is contained in:
parent
28c45f941b
commit
372442af2c
|
@ -1,4 +1,5 @@
|
||||||
using System.Linq;
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
using FizzWare.NBuilder;
|
using FizzWare.NBuilder;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
using Marr.Data;
|
using Marr.Data;
|
||||||
|
@ -31,10 +32,13 @@ namespace NzbDrone.Core.Test.MediaFiles
|
||||||
.CreateNew()
|
.CreateNew()
|
||||||
.Build();
|
.Build();
|
||||||
|
|
||||||
|
|
||||||
Mocker.GetMock<IDiskProvider>()
|
Mocker.GetMock<IDiskProvider>()
|
||||||
.Setup(c => c.FileExists(It.IsAny<string>()))
|
.Setup(c => c.FileExists(It.IsAny<string>()))
|
||||||
.Returns(true);
|
.Returns(true);
|
||||||
|
|
||||||
|
Mocker.GetMock<IDiskProvider>()
|
||||||
|
.Setup(c => c.GetParentFolder(It.IsAny<string>()))
|
||||||
|
.Returns<string>(c => Path.GetDirectoryName(c));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void GivenSingleEpisodeWithSingleEpisodeFile()
|
private void GivenSingleEpisodeWithSingleEpisodeFile()
|
||||||
|
|
Loading…
Reference in New Issue