public void ExecuteAddToExplorerContextMenu_IsAddedToExplorerInSpecifiedStates(bool uacAssistentState)
        {
            var viewModel = BuildViewModel();

            _uacAssistent.AddExplorerIntegration().Returns(uacAssistentState);
            viewModel.AddExplorerIntegrationCommand.Execute(null);
            Assert.AreEqual(uacAssistentState, viewModel.IsAddedToExplorer);
        }
Esempio n. 2
0
        private void ExecuteAddToExplorerContextMenu(object obj)
        {
            IsAddedToExplorer = false;
            RaisePropertyChanged(nameof(IsAddedToExplorer));

            IsAddedToExplorer = _uacAssistant.AddExplorerIntegration();
            RaisePropertyChanged(nameof(IsAddedToExplorer));
        }