public void ForYTest() { int width = 33; int height = 80; BasicMap map = new BasicMap(width, height, 1, Distance.EUCLIDEAN); List <Coord> pointsSet = new List <Coord>(); int counter = 0; map.ForY((y) => { double x = 14.75 * Math.Sin(y / 30.0) + width / 2; Coord fy = new Coord((int)x, y); pointsSet.Add(fy); map.SetTerrain(_factory.Generic(fy, counter)); counter++; }); counter = 0; for (int y = 0; y < height; y++) { double x = 14.75 * Math.Sin(y / 30.0) + width / 2; BasicTerrain terrain = map.GetTerrain <BasicTerrain>(new Coord((int)x, y)); Assert.NotNull(terrain); Assert.AreEqual(counter, terrain.Glyph); counter++; } }