mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-29 23:12:39 +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>()
|
||||
.Setup(v => v.GetFileInfos(It.IsAny<string>()))
|
||||
.Returns(new List<FileInfo>());
|
||||
|
||||
Mocker.GetMock<IDiskProvider>()
|
||||
.Setup(v => v.CopyPermissions(It.IsAny<string>(), It.IsAny<string>(), false));
|
||||
}
|
||||
|
||||
private void WithRealDiskProvider()
|
||||
@ -1043,6 +1046,9 @@ namespace NzbDrone.Common.Test.DiskTests
|
||||
Mocker.GetMock<IDiskProvider>()
|
||||
.Setup(v => v.OpenReadStream(It.IsAny<string>()))
|
||||
.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)
|
||||
|
Loading…
Reference in New Issue
Block a user