public void InterpolateValueTest()
        {
            var s = new TestInterpolatingStroke(null);

            for (int i = 0; i < 10; i++)
            {
                Assert.AreEqual(i, s.InterpolateValue(0, 9, 10, i));
            }
        }
        public void InterpolatedPointListTest()
        {
            var p1     = new SPoint(0, 0, new Vec3b(0, 0, 0));
            var p2     = new SPoint(10, 0, new Vec3b(20, 20, 20));
            var s      = new TestInterpolatingStroke(null);
            var points = s.GetPointsBetween(p1, p2).ToArray();
            var pTest  = new SPoint(5, 0, new Vec3b(10, 10, 10));

            Assert.AreEqual(11, points.Length);
            for (int i = 0; i < 10; i++)
            {
                Assert.AreEqual(i, points[i].X);
                Assert.AreEqual(0, points[i].Y);
                for (int j = 0; j < 3; j++)
                {
                    Assert.AreEqual(2 * i, points[i].Color[j]);
                }
            }
        }