示例#1
0
        public void ShouldReturnCorrectRowNumberWhenBiggerThan9()
        {
            var shotParser = new ShotParser();

            (var column, var row) = shotParser.ParseShot("A156");
            Assert.Equal(156, row);
        }
示例#2
0
        public void ShouldReturnCorrectColumnAndRowNumber()
        {
            var shotParser = new ShotParser();

            (var column, var row) = shotParser.ParseShot("A3");
            Assert.Equal(1, column);
            Assert.Equal(3, row);
        }