예제 #1
0
        public void RightNeighborContainedInNeighbors()
        {
            //arrange
            Coordinate first = new Coordinate(1, 1);
            Coordinate right = new Coordinate(2, 1);
            bool expected = true;

            //act
            List<Coordinate> neighbors = first.getNeighbors();
            bool actual = neighbors.Contains(right);

            //assert
            Assert.AreEqual(expected, actual);
        }