public KeyMappingTimeoutHandlerTest()
        {
            _keyMappingTimeoutHandler = new KeyMappingTimeoutHandler(ProtectedOperations);
            Vim.GlobalSettings.Timeout = true;
            Vim.GlobalSettings.TimeoutLength = 100;

            _vimBuffer = CreateVimBuffer("");
            _keyMappingTimeoutHandler.OnVimBufferCreated(_vimBuffer);
        }
 internal TimerData(IVimBuffer vimBuffer, IProtectedOperations protectedOperations, KeyMappingTimeoutHandler keyMappingTimeoutHandler)
 {
     _protectedOperations = protectedOperations;
     _vimBuffer = vimBuffer;
     _keyMappingTimeoutHandler = keyMappingTimeoutHandler;
     _timer = new DispatcherTimer(DispatcherPriority.Input);
     _timer.Tick += OnTimerTick;
     _vimBuffer.KeyInputProcessed += OnKeyInputProcessed;
     _vimBuffer.KeyInputBuffered += OnKeyInputBuffered;
 }
 internal TimerData(IVimBuffer vimBuffer, IProtectedOperations protectedOperations, KeyMappingTimeoutHandler keyMappingTimeoutHandler)
 {
     _protectedOperations      = protectedOperations;
     _vimBuffer                = vimBuffer;
     _keyMappingTimeoutHandler = keyMappingTimeoutHandler;
     _timer       = new DispatcherTimer(DispatcherPriority.Input);
     _timer.Tick += OnTimerTick;
     _vimBuffer.KeyInputProcessed += OnKeyInputProcessed;
     _vimBuffer.KeyInputBuffered  += OnKeyInputBuffered;
 }
        public override void SetupBase()
        {
            base.SetupBase();
            _keyMappingTimeoutHandler = new KeyMappingTimeoutHandler(ProtectedOperations);
            Vim.GlobalSettings.Timeout = true;
            Vim.GlobalSettings.TimeoutLength = 100;

            _vimBuffer = CreateVimBuffer("");
            _keyMappingTimeoutHandler.OnVimBufferCreated(_vimBuffer);
        }