mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-23 13:57:06 -04:00
Fixed tests
This commit is contained in:
parent
e724e8db60
commit
1564208e83
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue