public void AxesCountTest(int axesCount, float excepted) { var axis = new ColorAxis(axesCount); axis.xCurve = AnimationCurve.Linear(0, xCurveValue, 1, xCurveValue); axis.yCurve = AnimationCurve.Linear(0, yCurveValue, 1, yCurveValue); axis.yWeight = 1; Assert.That(axis.Evaluate(0, 1), Is.EqualTo(excepted)); }
public void YDirectionTest(float yWeight, float excepted) { var axis = new ColorAxis(2); axis.xCurve = AnimationCurve.Linear(0, xCurveValue, 1, xCurveValue); axis.yCurve = AnimationCurve.Linear(0, yCurveValue, 1, yCurveValue); axis.yWeight = yWeight; Assert.That(axis.Evaluate(0, 0), Is.EqualTo(excepted)); }