public void MustRevertCorrectly() { sut.Revert(); keyboardInterceptorMock.Verify(i => i.Start(), Times.Never); keyboardInterceptorMock.Verify(i => i.Stop(), Times.Once); }
public void MustRevertCorrectly() { sut.Revert(); nativeMethodsMock.Verify(n => n.DeregisterKeyboardHook(It.IsAny <IKeyboardInterceptor>()), Times.Once); }