|
|
@ -1,4 +1,4 @@
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.IO;
|
|
|
|
using System.IO;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
@ -1046,6 +1046,9 @@ namespace NzbDrone.Common.Test.DiskTests
|
|
|
|
Mocker.GetMock<IDiskProvider>()
|
|
|
|
Mocker.GetMock<IDiskProvider>()
|
|
|
|
.Setup(v => v.GetFileInfos(It.IsAny<string>()))
|
|
|
|
.Setup(v => v.GetFileInfos(It.IsAny<string>()))
|
|
|
|
.Returns(new List<FileInfo>());
|
|
|
|
.Returns(new List<FileInfo>());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<IDiskProvider>()
|
|
|
|
|
|
|
|
.Setup(v => v.CopyPermissions(It.IsAny<string>(), It.IsAny<string>(), false));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void WithRealDiskProvider()
|
|
|
|
private void WithRealDiskProvider()
|
|
|
@ -1105,6 +1108,9 @@ namespace NzbDrone.Common.Test.DiskTests
|
|
|
|
Mocker.GetMock<IDiskProvider>()
|
|
|
|
Mocker.GetMock<IDiskProvider>()
|
|
|
|
.Setup(v => v.OpenReadStream(It.IsAny<string>()))
|
|
|
|
.Setup(v => v.OpenReadStream(It.IsAny<string>()))
|
|
|
|
.Returns<string>(s => new FileStream(s, FileMode.Open, FileAccess.Read));
|
|
|
|
.Returns<string>(s => new FileStream(s, FileMode.Open, FileAccess.Read));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<IDiskProvider>()
|
|
|
|
|
|
|
|
.Setup(v => v.CopyPermissions(It.IsAny<string>(), It.IsAny<string>(), false));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void WithMockMount(string root)
|
|
|
|
private void WithMockMount(string root)
|
|
|
|