runTest() public method

public runTest ( ) : bool
return bool
Example #1
0
    public static void Main(String[] args)
    {
        bool bResult = false;
        Co8597BinarySearch_obj oCbTest = new Co8597BinarySearch_obj();

        try
        {
            bResult = oCbTest.runTest();
        }
        catch (Exception ex)
        {
            bResult = false;
            Console.WriteLine(s_strTFName + s_strTFPath);
            Console.WriteLine(s_strTFName + "E_1000000");
            Console.WriteLine(s_strTFName + "FAiL: Uncaught exception detected in Main()");
            Console.WriteLine(s_strTFName + ex.ToString());
        }
        if (bResult == true)
        {
            Environment.ExitCode = 0;
        }
        else
        {
            Environment.ExitCode = 1;
        }
    }
Example #2
0
 public static void Main( String[] args )
 {
     bool bResult = false;	
     Co8597BinarySearch_obj oCbTest = new Co8597BinarySearch_obj();
     try
     {
         bResult = oCbTest.runTest();
     }
     catch( Exception ex )
     {
         bResult = false;
         Console.WriteLine( s_strTFName+ s_strTFPath );
         Console.WriteLine( s_strTFName+ "E_1000000" );
         Console.WriteLine( s_strTFName+ "FAiL: Uncaught exception detected in Main()" );
         Console.WriteLine( s_strTFName+ ex.ToString() );
     }
     if ( bResult == true ) Environment.ExitCode = 0; else Environment.ExitCode = 1;
 }