runTest() public méthode

public runTest ( ) : bool
Résultat bool
Exemple #1
0
    public static void Main(String [] args)
    {
        bool bResult = false;

        System.String       strTest = "Co1252Append_string";
        Co1252Append_string oCbTest = new Co1252Append_string();

        try
        {
            bResult = oCbTest.runTest();
        }
        catch (System.Exception ex)
        {
            System.Console.Error.Write(strTest);
            System.Console.Error.WriteLine(" uncaught exception");
        }
        if (bResult == true)
        {
            System.Console.Error.Write(strTest);
            System.Console.Error.WriteLine(" paSs");
            Environment.ExitCode = 0;
        }
        else
        {
            System.Console.Error.Write(strTest);
            System.Console.Error.WriteLine(" FAiL");
            Environment.ExitCode = 1;
        }
    }
 public static void Main( String [] args )
   {
   bool bResult = false;	
   System.String strTest = "Co1252Append_string";
   Co1252Append_string oCbTest = new Co1252Append_string();
   try
     {
     bResult = oCbTest.runTest();
     }
   catch( System.Exception ex )
     {
     System.Console.Error.Write( strTest );
     System.Console.Error.WriteLine(  " uncaught exception" );
     }
   if ( bResult == true )
     {
     System.Console.Error.Write( strTest );
     System.Console.Error.WriteLine( " paSs" );
     Environment.ExitCode = 0;
     }
   else
     {
     System.Console.Error.Write( strTest );
     System.Console.Error.WriteLine( " FAiL" );
     Environment.ExitCode = 1;
     }
   }