public void ShowLicenseCommand_IsExecutablee_OpensLicenseHelpTopic() { var vm = BuildAboutWindowViewModel(); Assert.IsTrue(vm.ShowLicenseCommand.IsExecutable); vm.ShowLicenseCommand.Execute(null); _userGuideHelper.Received().ShowHelp(HelpTopic.License); }
public void WhatsNewCommand_IsExecutable_OpensWhatsNewHelpTopic() { var vm = new WelcomeWindowViewModel(_processStarter, new ButtonDisplayOptions(false, false), _userGuideHelper, new WelcomeWindowTranslation()); Assert.IsTrue(vm.WhatsNewCommand.IsExecutable); vm.WhatsNewCommand.Execute(null); _userGuideHelper.Received().ShowHelp(HelpTopic.WhatsNew); }
public void Execute_CommandIsNotInitializedTransmittedParmeterIsNull_UserGuideShowsGeneralTopic() { _showUserGuideCommand.Execute(null); _userGuideHelper.Received().ShowHelp(HelpTopic.General); }