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 TestHexSetsTokenCorrectly() { var target = new Hex("brick", BRICK_COLOR); target.setToken(5); Assert.AreEqual(5, target.getToken()); }