public void OpenOutputFile_WithDefaultViewer_FileAssocHasOpen_OpensOutputFile()
        {
            var filePath = @"X:\SomeFile\test.pdf";

            _fileAssoc.HasOpen(".pdf").Returns(true);
            _defaultViewer.IsActive = true;
            _defaultViewerCheck.Check(_defaultViewer).Returns(new ActionResult());

            var result = _defaultViewerAction.OpenOutputFile(filePath);

            Assert.IsTrue(result.IsSuccess);
            _processStarter.DidNotReceive().Start(filePath);
            _processStarter.Received(1).Start(_defaultViewer.Path, "\"" + filePath + "\"");
        }
        public void CreateViewModel_CallLaunchPDFArchitectCommandWithBrokenString_ProcessStarterIsNotCalled()
        {
            var viewModel = BuildArchitectViewModel();
            var appPath   = "   ";

            _pdfArchitectCheck.GetInstallationPath().Returns(appPath);

            viewModel.LaunchPdfArchitectCommand.Execute(null);
            _processStarter.DidNotReceive().Start(Arg.Any <string>());
        }