Exemplo n.º 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();
        }
Exemplo n.º 2
0
 public void SetUp()
 {
     console = new TestWriter();
 }