Co6663Equals.runTest C# (CSharp) 메소드

runTest() 개인적인 메소드

private runTest ( Boolean verbose ) : Boolean
verbose Boolean
리턴 Boolean
 private Boolean runTest( Boolean verbose )
   {
   int iCountErrors = 0;
   int iCountTestcases = 0;
   try
     {
     ++iCountTestcases;   
     if ( verbose ) Console.WriteLine( "checking if ArgIterator.Equals throws the NotSupportedException" );	
     try	{
     NormClass.argit1( __arglist(   ) );				
     }
     catch (NotSupportedException) {}
     catch (Exception ex) {
     ++iCountErrors;
     Console.WriteLine( "Err_008a,  Unexpected exception was thrown ex: " + ex.ToString() );
     }			
     }
   catch (Exception exc_runTest)
     {
     ++iCountErrors;			
     Console.Error.WriteLine (strName+" "+strTest+" "+strPath);
     Console.Error.WriteLine ("Unexpected Exception (runTest99): "+exc_runTest.ToString());
     }
   Console.WriteLine ();
   Console.WriteLine ("FINAL TEST RESULT:" + strName+" "+strTest+" "+strPath);
   Console.WriteLine ();
   if ( iCountErrors == 0 ) {   return true; }
   else {  return false;}
   }
 public static void Main( String[] args ) 

Usage Example

예제 #1
0
 public static void Main( String[] args ) 
   {
   Boolean bResult = false;	
   Co6663Equals oReplaceTest = new Co6663Equals();
   Console.WriteLine( "Starting "+ strName +" ..." );                                               	
   Console.WriteLine( "USAGE:  Co6663Equals.exe OR Co6663Equals.exe verbose" );
   Boolean verbose=false;
   try
     {			
     if ( args.Length > 0 ) {
     Console.WriteLine( "Verbose ON!" );
     verbose = true;
     }
     Console.WriteLine();                                                                        
     bResult = oReplaceTest.runTest(verbose);				
     }
   catch ( Exception exc_main ) {
   bResult = false;
   Console.Error.WriteLine (strName+" "+strTest+" "+strPath);
   Console.Error.WriteLine ("Unexpected Exception (Main99): "+exc_main.ToString());
   }
   if ( ! bResult )
     Console.Error.WriteLine(  "PATHTOSOURCE: (FAIL) " + strPath + strTest );
   if ( bResult == true ) Environment.ExitCode = 0; else Environment.ExitCode = 11;
   }
All Usage Examples Of Co6663Equals::runTest
Co6663Equals