public mainForm() { InitializeComponent(); mapContext = new MapContext(MapBuilder.Build("Fixtures/map.in")); zeebotSystem = new ZeebotSystem(mapContext, 6); realMap.ToPaint = mapContext; calculatedMap.ToPaint = zeebotSystem; timer.Interval = 250; timer.Start(); }
void System_Test(int nrZeebots, int testSize) { zeebotSystem = new ZeebotSystem(new MapContext(MapBuilder.Build("Fixtures/map.in")), nrZeebots); Assert.Equals(true, Overlaps()); for (int i = 0; i < testSize; i++) { zeebotSystem.Run(); Assert.Equals(true, Overlaps()); } }