Пример #1
0
 public void ResolveAnyConflicts3()
 {
     Create("::ctrl+h");
     _serviceRaw.ConflictingKeyBindingState = ConflictingKeyBindingState.FoundConflicts;
     _serviceRaw.VimFirstKeyInputSet        = new HashSet <KeyInput>();
     _optionsDialogService.Setup(x => x.ShowConflictingKeyBindingsDialog(It.IsAny <CommandKeyBindingSnapshot>())).Returns(true).Verifiable();
     _serviceRaw.ResolveAnyConflicts();
     Assert.Equal(ConflictingKeyBindingState.ConflictsIgnoredOrResolved, _service.ConflictingKeyBindingState);
 }
Пример #2
0
        public void ResolveAnyConflicts3()
        {
            Create("::ctrl+h");
            var snapshot = new CommandKeyBindingSnapshot(
                new CommandsSnapshot(_dte.Object),
                Enumerable.Empty <CommandKeyBinding>(),
                Enumerable.Empty <CommandKeyBinding>());

            _serviceRaw.UpdateConflictingState(ConflictingKeyBindingState.FoundConflicts, snapshot);
            _optionsDialogService.Setup(x => x.ShowConflictingKeyBindingsDialog(snapshot)).Returns(true).Verifiable();
            _serviceRaw.ResolveAnyConflicts();
            Assert.AreEqual(ConflictingKeyBindingState.ConflictsIgnoredOrResolved, _service.ConflictingKeyBindingState);
        }