Example #1
0
        public void ExecuteCommands_Test_SemiStressTest()
        {
            string startLocation = "10 15";
            var    commands      = new List <string>
            {
                "E 100000",
                "W 100000",
                "N 100000",
                "S 100000"
            };
            var service       = new RobotService();
            int spacesCleaned = service.ExecuteCommands(commands, startLocation);

            Assert.AreEqual(200001, spacesCleaned);
        }
Example #2
0
        public void ExecuteCommands_Test_Positive()
        {
            string startLocation = "0 0";
            var    commands      = new List <string>
            {
                "E 5",
                "W 5",
                "N 5",
                "S 5"
            };
            var service       = new RobotService();
            int spacesCleaned = service.ExecuteCommands(commands, startLocation);

            Assert.AreEqual(11, spacesCleaned);
        }