コード例 #1
0
        public void returns_twentyTwoMovements()
        {
            int result = RobotClass.robot_movement("N4", "E3", "S6", "W9");

            //should return 5 movements
            Assert.AreEqual(22, result);
        }
コード例 #2
0
        public void returns_seventeenMovements()
        {
            int result = RobotClass.robot_movement("N4", "E3", "S2", "W9");

            //should return 5 movements
            Assert.AreEqual(17, result);
        }
コード例 #3
0
        public void returns_elevenMovements()
        {
            int result = RobotClass.robot_movement("N4", "E2", "S2", "W4");

            //should return 5 movements
            Assert.AreEqual(11, result);
        }