|
|
@ -69,7 +69,7 @@ namespace NzbDrone.Core.Test.UpdateTests
|
|
|
|
.Returns(true);
|
|
|
|
.Returns(true);
|
|
|
|
|
|
|
|
|
|
|
|
Mocker.GetMock<IDiskProvider>()
|
|
|
|
Mocker.GetMock<IDiskProvider>()
|
|
|
|
.Setup(v => v.FileExists(It.Is<string>(s => s.EndsWith("Prowlarr.Update.exe"))))
|
|
|
|
.Setup(v => v.FileExists(It.Is<string>(s => s.EndsWith("Prowlarr.Update".ProcessNameToExe()))))
|
|
|
|
.Returns(true);
|
|
|
|
.Returns(true);
|
|
|
|
|
|
|
|
|
|
|
|
_sandboxFolder = Mocker.GetMock<IAppFolderInfo>().Object.GetUpdateSandboxFolder();
|
|
|
|
_sandboxFolder = Mocker.GetMock<IAppFolderInfo>().Object.GetUpdateSandboxFolder();
|
|
|
@ -165,7 +165,7 @@ namespace NzbDrone.Core.Test.UpdateTests
|
|
|
|
public void should_return_with_warning_if_updater_doesnt_exists()
|
|
|
|
public void should_return_with_warning_if_updater_doesnt_exists()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Mocker.GetMock<IDiskProvider>()
|
|
|
|
Mocker.GetMock<IDiskProvider>()
|
|
|
|
.Setup(v => v.FileExists(It.Is<string>(s => s.EndsWith("Prowlarr.Update.exe"))))
|
|
|
|
.Setup(v => v.FileExists(It.Is<string>(s => s.EndsWith("Prowlarr.Update".ProcessNameToExe()))))
|
|
|
|
.Returns(false);
|
|
|
|
.Returns(false);
|
|
|
|
|
|
|
|
|
|
|
|
Subject.Execute(new ApplicationUpdateCommand());
|
|
|
|
Subject.Execute(new ApplicationUpdateCommand());
|
|
|
|