public void EqualsToAnotherHexWithSameCoords() { var hexF = new HexF(1, 2, -3); var anotherHexF = new HexF(1, 2, -3); Assert.That(hexF == anotherHexF); Assert.That(hexF.Equals(anotherHexF)); }
public void DoesNotEqualAnotherHexWithDifferentCoords() { var hexF = new HexF(1, 2, -3); var anotherHexF = new HexF(1, 1, -2); Assert.That(hexF != anotherHexF); Assert.That(!hexF.Equals(anotherHexF)); }