Example #1
0
        public void TestSquarZero()
        {
            SquareCurve d   = new SquareCurve();
            float       sut = d.Apply(0.0f);

            Assert.AreEqual(sut, 0.0f);
        }
Example #2
0
        public void TestSquareNegative()
        {
            SquareCurve d   = new SquareCurve();
            float       sut = d.Apply(-0.5f);

            Assert.AreEqual(sut, -0.25f);
        }
Example #3
0
        public void TestSquarePositive()
        {
            SquareCurve d   = new SquareCurve();
            float       sut = d.Apply(0.5f);

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