示例#1
0
        public void RobotWasCreated_InputsAreCorrect()
        {
            _commander.AddInput("2");
            _commander.AddInput("10 22");
            _commander.AddInput("E 2");
            _commander.AddInput("N 1");

            Assert.IsTrue(_commander.InputsAreGiven);
        }
示例#2
0
        public void RobotWasCreated()
        {
            _commander.AddInput("2");
            _commander.AddInput("10 22");
            _commander.AddInput("E 2");
            _commander.AddInput("N 1");

            _robot = new RobotCleaner.Robot(_commander.GetTheCommands());

            Assert.IsNotNull(_robot);
        }