Пример #1
0
        public void MustRevertCorrectly()
        {
            sut.Revert();

            keyboardInterceptorMock.Verify(i => i.Start(), Times.Never);
            keyboardInterceptorMock.Verify(i => i.Stop(), Times.Once);
        }
Пример #2
0
        public void MustRevertCorrectly()
        {
            sut.Revert();

            nativeMethodsMock.Verify(n => n.DeregisterKeyboardHook(It.IsAny <IKeyboardInterceptor>()), Times.Once);
        }