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(); }
public void When_TextCaptured_with_Dragging_and_Release_comes_then_it_should_return_initial_state() { var triggered = false; var mouse = new TipsyMouse(() => triggered = true); mouse.StartDragging(); mouse.FinishDragging(); mouse.Release(); mouse.IsInState(State.Waiting).Should().BeTrue(); triggered.Should().Be(true); }