public void _1_DeltaAndInput_Positive_Force_Sets_GroundedCharacter_Value_To_x0yXz0(float force) { JumpingMovement jumping = A.JumpingMovement().WithForce(force).WithInput(1); jumping.Tick(1, true); Assert.AreEqual(new Vector3(0, force, 0), jumping.Value); }
public void _0_DeltaForceAndInput_DoesntSet_GroundedCharacter_Value() { JumpingMovement jumping = A.JumpingMovement(); jumping.Tick(1, true); Assert.AreEqual(Vector3.zero, jumping.Value); }
public void _1_DeltaAndInput_Positive_Force_DoesntSet_NotGroundedCharacter_Value(float force) { JumpingMovement jumping = A.JumpingMovement().WithForce(force).WithInput(1); var prevVal = jumping.Value; jumping.Tick(1, false); Assert.AreEqual(prevVal, jumping.Value); }
public void _1_Delta_0_Force_1_Input_DoesntSet_GroundedCharacter_Value() { JumpingMovement jumping = A.JumpingMovement().WithInput(1); var prevVal = jumping.Value; jumping.Tick(1, true); Assert.AreEqual(prevVal, jumping.Value); }
public void _Negative_Delta_1_Input_Positive_Force_DoesntSet_GroundedCharacter_Value(float delta, float force) { JumpingMovement jumping = A.JumpingMovement().WithForce(force).WithInput(1); var prevValue = jumping.Value; jumping.Tick(delta, true); Assert.AreEqual(prevValue, jumping.Value); }