예제 #1
0
        public void Calling_Move_Robot_Will_Move_One_Row_Towards_North()
        {
            // Arrange
            var robot       = new Robot(0, 0, CompassPoint.N);
            var arena       = new Arena(5, 5);
            int expectedRow = 1;
            int expectedCol = 0;

            // Act
            robotService.Move(arena, robot);

            // Assert
            Assert.AreEqual(expectedRow, robot.CurrentPostion.RowNumber);
            Assert.AreEqual(expectedCol, robot.CurrentPostion.ColumnNumber);
        }