//---------------------------------------------------------------------------------------------------------------------- static void AddKeyAndVerify(AnimationCurve curve, float time, float val) { curve.AddOrUpdateKey(time, val); Assert.AreEqual(val, curve.Evaluate(time)); }