public async Task GetDefinitionForVersionAsnyc_GivenVersion_ReturnsBlocksWithSimpleItemReference() { VersionDefinition result = await GetDefinitionsForVersion(); Assert.NotEmpty(result.Blocks); // Test against the Lapis Lazuli Block Block block = result.Blocks.First(b => b.Id == 22); Assert.Equal(22, block.Id); Assert.NotEmpty(block.Drops); BlockDrop drop = block.Drops.First(); Assert.Equal(22, drop.Drop.Id); }
public async Task GetDefinitionForVersionAsnyc_GivenVersion_ReturnsBlocksWithComplexProperties() { VersionDefinition result = await GetDefinitionsForVersion(); Assert.NotEmpty(result.Blocks); // Test against the Lapis Lazuli Ore Block block = result.Blocks.First(b => b.Id == 21); Assert.Equal(21, block.Id); Assert.NotEmpty(block.HarvestTools); BlockDrop drop = block.Drops.First(); Assert.Equal(4, drop.MinCount); Assert.Equal(8, drop.MaxCount); Assert.Equal(351, drop.Drop.Id); Assert.Equal(4, drop.Drop.Metadata); }