Exemple #1
0
    public static void Main(String[] args)
    {
        bool bResult          = false;
        FileStream_Unlock cbA = new FileStream_Unlock();

        try
        {
            bResult = cbA.runTest();
        }
        catch (Exception e)
        {
            bResult = false;
            Console.WriteLine("Error_9999! caught Exception in main(), msg:" + e.ToString());
        }
        if (bResult)
        {
            Console.WriteLine("Test PASSED");
        }
        else
        {
            Console.WriteLine("Test FAILED");
        }
    }
Exemple #2
0
 public static void Main(String[] args)
 {
     bool bResult = false;
     FileStream_Unlock cbA = new FileStream_Unlock();
     try 
     {
         bResult = cbA.runTest();
     } 
     catch (Exception e)
     {
         bResult = false;
         Console.WriteLine("Error_9999! caught Exception in main(), msg:"+e.ToString());
     }
     if (bResult) Console.WriteLine("Test PASSED"); else Console.WriteLine("Test FAILED");
 }