public void When_doubleClick_happens_then_it_should_be_in_TextCaptured_state() { var triggered = false; using var mouse = new TipsyMouse(() => { triggered = true; }); mouse.DoubleClick(); mouse.IsInState(State.TextCaptured).Should().BeTrue(); triggered.Should().BeTrue(); }
public void When_TextCaptured_with_DoubleClick_and_Release_comes_then_it_should_return_initial_state() { var triggered = false; using var mouse = new TipsyMouse(() => triggered = true); mouse.DoubleClick(); mouse.Release(); mouse.IsInState(State.Waiting).Should().BeTrue(); triggered.Should().BeTrue(); }