Exemplo n.º 1
0
        public void AreCollinearTest3()
        {
            Point[] points   = new Point[] { new Point(0, 0), new Point(1, 1), new Point(2, 2) };
            bool    expected = true;
            bool    actual;

            actual = PointExtensions.AreCollinear(points);
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void AreCollinearTest1()
        {
            Point[] points   = null;
            bool    expected = true;
            bool    actual;

            actual = PointExtensions.AreCollinear(points);
            Assert.AreEqual(expected, actual);
        }