Ejemplo n.º 1
0
        public void TestForDublicatedPoints()
        {
            Coordinates currentPoint = new Coordinates(1, 1);
            Coordinates otherPoint = new Coordinates(1, 1);

            bool result = currentPoint.CheckNeighbour(otherPoint);
        }
Ejemplo n.º 2
0
        public void TestVerticalNeighbour()
        {
            Coordinates currentPoint = new Coordinates(1, 1);
            Coordinates otherPoint = new Coordinates(1, 2);

            bool result = currentPoint.CheckNeighbour(otherPoint);

            Assert.AreEqual(result, true);
        }
Ejemplo n.º 3
0
        public void TestFarNeighbour()
        {
            Coordinates currentPoint = new Coordinates(1, 1);
            Coordinates otherPoint = new Coordinates(9, 9);

            bool result = currentPoint.CheckNeighbour(otherPoint);

            Assert.AreEqual(result, false);
        }