Exemplo n.º 1
0
        public void GetVacantCoordinatesTest()
        {
            List <Vector2> expectedPoints;
            BlockGrid      grid = VacantCoordsBlockGridInitialize(out expectedPoints);

            //test that the 3 shapes exist on grid

            List <Vector2> points = grid.GetVacantCoordinates();

            foreach (Vector2 p in expectedPoints)
            {
                //check if p in expected points
                if (!points.Contains(p))
                {
                    Assert.Fail("Block at point: {0}, {1} not found on grid", p.X, p.Y);
                }
            }
        }