mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-26 15:52:42 +00:00
Fix DiskTransferServiceFixture Failing Test
This commit is contained in:
parent
0ea3b71bae
commit
5d4eb3c6d8
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Moq;
|
using Moq;
|
||||||
|
@ -238,7 +238,7 @@ public void mode_none_should_throw_if_existing_target_when_not_overwriting()
|
||||||
|
|
||||||
WithExistingFile(_targetPath);
|
WithExistingFile(_targetPath);
|
||||||
|
|
||||||
Assert.Throws<IOException>(() => Subject.TransferFile(_sourcePath, _targetPath, TransferMode.Move, false));
|
Assert.Throws<DestinationAlreadyExistsException>(() => Subject.TransferFile(_sourcePath, _targetPath, TransferMode.Move, false));
|
||||||
|
|
||||||
Mocker.GetMock<IDiskProvider>()
|
Mocker.GetMock<IDiskProvider>()
|
||||||
.Verify(v => v.DeleteFile(_targetPath), Times.Never());
|
.Verify(v => v.DeleteFile(_targetPath), Times.Never());
|
||||||
|
|
Loading…
Reference in a new issue