public void EvaluteTimeDelay6() { var strikeModel = new StrikeModel { Velocity = 0, Delay = 0 }; var kick = new LinearWithTimeDelayBallKickPhysics(strikeModel); var time = kick.EvaluteElapsedTime(new Vector2(1, 0)); Assert.IsTrue(double.IsInfinity(time)); }
public void EvaluteTimeDelay5() { var strikeModel = new StrikeModel { Velocity = 2, Delay = 1 }; var kick = new LinearWithTimeDelayBallKickPhysics(strikeModel); var time = kick.EvaluteElapsedTime(new Vector2(10, 0)); Assert.AreEqual(4, time); }