Ejemplo n.º 1
0
        public void GetNewPosition_East()
        {
            //arrange
            var position = new Position
            {
                Horizontal = 2,
                Vertical   = 2
            };

            var direction = Directions.East;


            //act
            _toyRobot.Place(direction, position);
            var newPosition = _toyRobot.GetNewPosition();

            //assert
            Assert.AreEqual(3, newPosition.Horizontal);
            Assert.AreEqual(2, newPosition.Vertical);
        }