Пример #1
0
        static FakeCloudSTOTrackerGUI startGui()
        {
            var gui = new FakeCloudSTOTrackerGUI();

            gui.doAllWork();
            return(gui);
        }
Пример #2
0
 static void hasField(FakeCloudSTOTrackerGUI gui, int rowIndex, string field, string value)
 {
     try {
         O.wait(() => {
             gui.doAllWork();
             return(gui.tracker.table.Rows[rowIndex][field].Equals(value));
         });
     } catch (Exception e) {
         throw Bomb.toss("field " + field + " never matched " + value + " on row " + rowIndex + ", was " + gui.tracker.table.Rows[rowIndex][field], e);
     }
 }
Пример #3
0
 static void requireCount(FakeCloudSTOTrackerGUI gui, int count)
 {
     Objects.wait(() => { gui.doAllWork(); return(gui.tracker.table.Rows.Count == count); });
 }
Пример #4
0
 static void hasRedGreen(int expectedRed, int expectedGreen, FakeCloudSTOTrackerGUI gui)
 {
     AreEqual(expectedRed, gui.totalRed());
     AreEqual(expectedGreen, gui.totalGreen());
 }