public void Should_ReturnOne_WhenValueIsRemapedFromZeroToOne() { const float expected = 1; var actual = DefaultKeyframe.RemapValue(0f, 1f, 1f, 2f).value; Assert.AreEqual(expected, actual, TestSettings.DoublePrecision); }
public void Should_ReturnZero_WhenValueSetToZeroShallBeInverted() { const float expected = 0; var actual = DefaultKeyframe.InvertValue().value; Assert.AreEqual(expected, actual, TestSettings.DoublePrecision); }