Пример #1
0
        public void ReflectZOffsetTest(
            [ValueSource("s_ValidPoints")] TestHexPoint source,
            [ValueSource("s_OffsetZMirroredValidPoints")] TestHexPoint expected)
        {
            // Arrange
            var point         = new HexPoint(source.x, source.y);
            var expectedPoint = new HexPoint(expected.x, expected.y);

            // Act
            point = HexPoint.ReflectZ(point, 1);

            // Assert
            Assert.AreEqual(expectedPoint, point);
        }