示例#1
0
        public void ConvertSquareToPosition_CheckPosition(int testValue, Position expected)
        {
            // Arrange
            DualConverter converter = new DualConverter();
            // Act
            var actual = converter.ConvertSquareToPosition(testValue);

            // Assert
            expected.Should().BeEquivalentTo(actual);
        }
示例#2
0
        public void ConvertPositionToSquare_CheckSquare(Position testValue, int expected)
        {
            // Arrange
            DualConverter converter = new DualConverter();
            // Act
            var actual = converter.ConvertPositionToSquare(testValue);

            // Assert
            Assert.Equal(expected, actual);
        }