public void GenerateIslandWithPredefinedPoints() { var island = IslandEntityGenerator.Random(new GeoPoint(10, 10), new GeoPoint(100, 100)); // The centre of the island need to be covered by island. Assert.True(island.GeneratePoints().Contains(new GeoPoint(10, 10))); Assert.True(island.GeneratePoints().Contains(new GeoPoint(100, 100))); }
public void GenerateIslandWhereCentreIsDefined() { var island = IslandEntityGenerator.Random(new GeoPoint(10, 10)); // The centre of the island need to be covered by island. var points = island.GeneratePoints().ToArray(); Assert.True(points.Contains(new GeoPoint(10, 10))); }