public void ConstructWithAnalogInputs_PressingWrongAnalogInvokesNothing() { var handler = new CustomInputHandler(_expectedInputs, OnPressAnalog); handler.HandleAnalogInput(_unexpectedInput, 1.0f); Assert.IsFalse(_callbackInvoked); }
public void ConstructWithAnalogInputs_PressingAnalogInvokesDelegate() { var handler = new CustomInputHandler(_expectedInputs, OnPressAnalog); handler.HandleAnalogInput(_expectedInputs.First(), 1.0f); Assert.IsTrue(_callbackInvoked); }