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 TestHexHasCorrectColor() { var target = new Hex("lumber", LUMBER_COLOR); Assert.AreEqual(LUMBER_COLOR, target.getColor()); }