|
|
@ -265,7 +265,7 @@ namespace NzbDrone.Core.Test.UpdateTests
|
|
|
|
public void should_log_error_when_app_data_is_child_of_startup_folder()
|
|
|
|
public void should_log_error_when_app_data_is_child_of_startup_folder()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Mocker.GetMock<IAppFolderInfo>().SetupGet(c => c.StartUpFolder).Returns(@"C:\Lidarr".AsOsAgnostic);
|
|
|
|
Mocker.GetMock<IAppFolderInfo>().SetupGet(c => c.StartUpFolder).Returns(@"C:\Lidarr".AsOsAgnostic);
|
|
|
|
Mocker.GetMock<IAppFolderInfo>().SetupGet(c => c.AppDataFolder).Returns(@"C:\LIdarr\AppData".AsOsAgnostic);
|
|
|
|
Mocker.GetMock<IAppFolderInfo>().SetupGet(c => c.AppDataFolder).Returns(@"C:\Lidarr\AppData".AsOsAgnostic);
|
|
|
|
|
|
|
|
|
|
|
|
Assert.Throws<CommandFailedException>(() => Subject.Execute(new ApplicationUpdateCommand()));
|
|
|
|
Assert.Throws<CommandFailedException>(() => Subject.Execute(new ApplicationUpdateCommand()));
|
|
|
|
ExceptionVerification.ExpectedErrors(1);
|
|
|
|
ExceptionVerification.ExpectedErrors(1);
|
|
|
|