Esempio n. 1
0
    public static bool PumpTest(string name)
    {
        if (name == "tp")
        {
            return(TPPump());
        }
        if (name == "dele")
        {
            return(DelePump());
        }
        if (name == "gc")
        {
            return(GcPump());
        }

        if (testRunner == null)
        {
            return(false);
        }
        try {
            bool res = testRunner.Step();
            if (!res)
            {
                testRunner = null;
            }
            return(res);
        } catch (Exception e) {
            Console.WriteLine(e);
            return(true);
        }
    }
Esempio n. 2
0
 public static bool PumpTest()
 {
     if (testRunner == null)
     {
         return(false);
     }
     try {
         bool res = testRunner.Step();
         if (!res)
         {
             testRunner = null;
         }
         return(res);
     } catch (Exception e) {
         Console.WriteLine(e);
         return(true);
     }
 }