Ejemplo n.º 1
0
        public void PlaceRobot_CorrectPosition_ReturnsTrue(ToyRobot toyRobot, int x, int y, Facing direction)
        {
            toyRobot.PlaceRobot(x, y, direction);

            Assert.AreEqual(expected: toyRobot.CurrentPosition.X, actual: x);
            Assert.AreEqual(expected: toyRobot.CurrentPosition.Y, actual: y);
            Assert.AreEqual(expected: toyRobot.CurrentPosition.Direction, actual: direction);
        }
Ejemplo n.º 2
0
        public void PlaceRobot_CorrectPosition_ReturnsTrue()
        {
            var    toyRobot  = new ToyRobot();
            int    x         = 1;
            int    y         = 2;
            Facing direction = Facing.NORTH;

            toyRobot.PlaceRobot(x, y, direction);

            Assert.AreEqual(expected: toyRobot.CurrentPosition.X, actual: x);
            Assert.AreEqual(expected: toyRobot.CurrentPosition.Y, actual: y);
            Assert.AreEqual(expected: toyRobot.CurrentPosition.Direction, actual: direction);
        }