public void TestSquarZero() { SquareCurve d = new SquareCurve(); float sut = d.Apply(0.0f); Assert.AreEqual(sut, 0.0f); }
public void TestSquareNegative() { SquareCurve d = new SquareCurve(); float sut = d.Apply(-0.5f); Assert.AreEqual(sut, -0.25f); }
public void TestSquarePositive() { SquareCurve d = new SquareCurve(); float sut = d.Apply(0.5f); Assert.AreEqual(sut, 0.25f); }