示例#1
0
        private void Clean()
        {
            output = new TestWriter();
            office = new Office();
            robot  = new Robot(office, new List <ICommand> ()
            {
                new PositionCommand("10 22"),
                new MoveCommand("N 2"),
                new MoveCommand("E 1")
            },
                               output);

            robot.Clean();
            robot.PrintReport();
        }
示例#2
0
 public void SetUp()
 {
     console = new TestWriter();
 }