public void AttackActionShouldCall() { bool called = true; controllerMock.Setup(s => s.PlayerAttackEnemy()) .Callback(() => called = true); action.RespondToInput(controllerMock.Object, null); Assert.True(called); }