コード例 #1
0
            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));
            }
コード例 #2
0
            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));
            }