public InputReceivedActionStateCondition(IEnumerable <EInputKey> inInputs,
                                          IInputBinderInterface inInputBinderInterface)
     : base()
 {
     _inputBinderInterface = inInputBinderInterface;
     _boundHandler         = new CustomInputHandler(inInputs, OnInputReceived);
 }
        public void ConstructWithMouseInputs_PressingWrongMouseInvokesNothing()
        {
            var handler = new CustomInputHandler(_expectedInputs, OnPressMouse);

            handler.HandleMouseInput(_unexpectedInput, Vector3.back);

            Assert.IsFalse(_callbackInvoked);
        }
        public void ConstructWithMouseInputs_PressingMouseInvokesDelegate()
        {
            var handler = new CustomInputHandler(_expectedInputs, OnPressMouse);

            handler.HandleMouseInput(_expectedInputs.First(), Vector3.back);

            ;           Assert.IsTrue(_callbackInvoked);
        }
        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);
        }
        public void ConstructWithButtonInputs_PressingWrongButtonInvokesNothing()
        {
            var handler = new CustomInputHandler(_expectedInputs, OnPressButton);

            handler.HandleButtonInput(_unexpectedInput, true);

            Assert.IsFalse(_callbackInvoked);
        }
        public void ConstructWithButtonInputs_PressingButtonInvokesDelegate()
        {
            var handler = new CustomInputHandler(_expectedInputs, OnPressButton);

            handler.HandleButtonInput(_expectedInputs.First(), true);

            Assert.IsTrue(_callbackInvoked);
        }