private void ChangeKeyTriggerToTouchPadTrigger(int index) { var touchpadTrigger = new TouchPressTrigger(State.Pressed); inputEditorViewModel.availableCommands.GetAllTriggers(inputEditorViewModel.SelectedCommand) [index] = touchpadTrigger; }
public void ConditionMatched(Type resolver) { Start(resolver, (InputCommands input) => { var trigger = new TouchPressTrigger(State.Pressing); Assert.False(trigger.ConditionMatched(input)); }); }
public void CheckForEquility() { var trigger = new TouchPressTrigger(State.Pressing); var otherTrigger = new TouchPressTrigger(State.Released); Assert.AreNotEqual(trigger, otherTrigger); Assert.AreNotEqual(trigger.GetHashCode(), otherTrigger.GetHashCode()); var copyOfTrigger = new TouchPressTrigger(State.Pressing); Assert.AreEqual(trigger, copyOfTrigger); Assert.AreEqual(trigger.GetHashCode(), copyOfTrigger.GetHashCode()); }
public void CreateFromString() { var trigger = new TouchPressTrigger("Pressed"); Assert.AreEqual(State.Pressed, trigger.State); }
public void Create() { var trigger = new TouchPressTrigger(State.Pressed); Assert.AreEqual(State.Pressed, trigger.State); }