public void MouseButtonToKeyOrMouseButtonImplicitOperator() { const MouseAction mouseAction = MouseAction.XButton1; KeyOrButton keyOrButton = mouseAction; Assert.Multiple(() => { Assert.That(!keyOrButton.IsKey); Assert.That(keyOrButton.MouseButton, Is.EqualTo(mouseAction)); }); }
public KeyOrButton(MouseAction mouseAction) { this.MouseButton = mouseAction; }