protected override void GenerateBiomeTriggers(BiomeKey biomeKey, List <ChunkKey> expectedChunks) { foreach (var item in expectedChunks) { Assert.AreEqual(biomeKey, GetBiomeForChunk(item)); } RequestedTriggers.AddRange(expectedChunks); }
private void TestBiomeToChunks(BiomeWorldProvider worldProvider, BiomeKey key) { var chunks = worldProvider.GetChunksForBiome(key); Assert.AreEqual(chunks.SelectMany(item => item).Count(), worldProvider.BiomeChunkSize * worldProvider.BiomeChunkSize); foreach (var item in chunks.SelectMany(item => item)) { var biome = worldProvider.GetBiomeForChunk(item); Assert.AreEqual(key, biome); } }