public void ExecuteAddToExplorerContextMenu_IsAddedToExplorerInSpecifiedStates(bool uacAssistentState) { var viewModel = BuildViewModel(); _uacAssistent.AddExplorerIntegration().Returns(uacAssistentState); viewModel.AddExplorerIntegrationCommand.Execute(null); Assert.AreEqual(uacAssistentState, viewModel.IsAddedToExplorer); }
private void ExecuteAddToExplorerContextMenu(object obj) { IsAddedToExplorer = false; RaisePropertyChanged(nameof(IsAddedToExplorer)); IsAddedToExplorer = _uacAssistant.AddExplorerIntegration(); RaisePropertyChanged(nameof(IsAddedToExplorer)); }