public void TestCheckMountConfigurationWhenFailedSshIsFalseAndWarningShowed()
        {
            _remoteCommand
            .When(c => c.RunWithSuccessCapturingOutputAsync(Arg.Any <SshTarget>(),
                                                            Arg.Any <string>()))
            .Do(_ => throw new ProcessExecutionException("oops", 1));

            var mountChecker =
                new GameletMountChecker(_remoteCommand, _dialogUtil, _cancelableTaskFactory);

            MountConfiguration configuration =
                mountChecker.GetConfiguration(_gamelet, _actionRecorder);
            bool result = mountChecker.IsGameAssetsDetachedFromDeveloperFolder(configuration);

            Assert.That(result, Is.False);
            _dialogUtil.Received(1).ShowError(Arg.Any <string>(), Arg.Any <string>());
        }
        public void TestClearLogsFailsReturnsFalse()
        {
            _remoteCommand
            .When(m => m.RunWithSuccessAsync(new SshTarget(_gamelet1),
                                             GameletSelectorLegacyFlow.ClearLogsCmd))
            .Do(c => { throw new ProcessException("Oops!"); });

            Gamelet gamelet;
            var     result = _gameletSelector.TrySelectAndPrepareGamelet(_targetPath, _deploy,
                                                                         new List <Gamelet> {
                _gamelet1
            }, null, _devAccount, out gamelet);

            Assert.That(result, Is.False);
            _dialogUtil.ShowError(Arg.Any <string>(), Arg.Any <string>());
            AssertMetricRecorded(DeveloperEventType.Types.Type.VsiGameletsClearLogs,
                                 DeveloperEventStatus.Types.Code.ExternalToolUnavailable);
        }