mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-30 07:22:35 +01:00
Fixed tests
This commit is contained in:
parent
e724e8db60
commit
1564208e83
@ -989,6 +989,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()
|
||||||
@ -1043,6 +1046,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)
|
||||||
|
Loading…
Reference in New Issue
Block a user