Exemplo n.º 1
0
 public void ListenReportedPosition()
 {
     RobotCollection robots = new RobotCollection();
     robots.ReportedPosition += (id, position, heading) => Assert.Pass();
     robots.Add(new Robot(0, new Position(1, 1), new HeadingEast(), new List<char>() { 'M' }, new Plateau(5, 5)));
     robots.StartExplore();
 }
Exemplo n.º 2
0
 public void NotListenReportedPosition()
 {
     RobotCollection robots = new RobotCollection();
     robots.Add(new Robot(0, new Position(1, 1), new HeadingEast(), new List<char>() { 'M' }, new Plateau(5, 5)));
     robots.StartExplore();
 }