Exemple #1
0
        public void Position46ReturnsE7()
        {
            PositionParser positionParser = new PositionParser();

            Position thePosition = new Position(4, 6);

            string output = positionParser.BackParser(thePosition);


            output.Should().Be("E7");
        }
Exemple #2
0
        public void Position99ReturnsJ10()
        {
            PositionParser positionParser = new PositionParser();

            Position thePosition = new Position(9, 9);

            string output = positionParser.BackParser(thePosition);


            output.Should().Be("J10");
        }
Exemple #3
0
        public void ReturnX()
        {
            PositionParser positionParser = new PositionParser();

            Position thePosition = new Position(0, 0);

            string output = positionParser.BackParser(thePosition);

            string i = output[0].ToString();

            i.Should().Be("A");
        }
Exemple #4
0
        public void ReturnNotNull()
        {
            PositionParser positionParser = new PositionParser();

            Position thePosition = new Position(0, 0);

            var output = positionParser.BackParser(thePosition);

            bool result;

            if (output != null)
            {
                result = true;
            }
            else
            {
                result = false;
            }

            result.Should().Be(true);
        }