public ResourceHexPictureBox(Hex hex, World world) : this() { resourceType = hex.getResourceType(); this.BackColor = hex.getColor(); this.token = hex.getToken(); this.world = world; this.hex = hex; doubleClickTimer.Interval = 100; checkDesert(); }
public void TestThatHexSetsFields() { var target = new Hex("wool", GRAIN_COLOR); Assert.NotNull(target.getResourceType()); Assert.NotNull(target.getColor()); }
public void TestHexHasCorrectResourceType() { var target = new Hex("ore", ORE_COLOR); Assert.AreEqual("ore", target.getResourceType()); }