Пример #1
0
        public void CreateApplyInputActionForInputCommand_WhenInvokedWithInstance_CreatesCorrectAction()
        {
            SetUpApplyInput();

            var action = systemUnderTest.CreateApplyInputActionForInputCommand(
                x => x.ApplyInput(null, null),
                testingCommandImplementorProxy);

            action(commandContextMock, InputText);

            commandContextMock.DidNotReceive().GetService <TestingCommandImplementor>();
            testingCommandImplementorMock.Received(1).ApplyInput(commandContextMock, InputText);
        }