public void FarmTest(MaterialType type) { var tile = new Tile(1, 2, 3, type); IRawMaterial material = tile.Farm(); Assert.Equal(type, material.Type); }
public void InvalidFarmTiles(MaterialType type) { var tile = new Tile(1, 2, 3, type); Assert.Throws<InvalidOperationException>(() => tile.Farm()); }