public static void Main(String[] args) { Boolean bResult = false; Co5452GetBytes_bool cbA = new Co5452GetBytes_bool(); try { bResult = cbA.runTest(); } catch (Exception exc_main) { bResult = false; Console.WriteLine(s_strTFAbbrev + " : FAiL! Error Err_9999zzz! Uncaught Exception in main(), exc_main==" + exc_main); } if (!bResult) { Console.WriteLine("Path: " + s_strTFName + s_strTFPath); Console.WriteLine(" "); Console.WriteLine("FAiL! " + s_strTFAbbrev); Console.WriteLine(" "); } if (bResult) { Environment.ExitCode = 0; } else { Environment.ExitCode = 1; } }
public Boolean runTest() { Console.WriteLine(s_strTFPath + " " + s_strTFName + " , for " + s_strClassMethod + " , Source ver " + s_strDtTmVer); int iCountErrors = 0; int iCountTestcases = 0; String strLoc = "Loc_000oo"; String strBaseLoc = ""; String strValue = String.Empty; Co5452GetBytes_bool cc = new Co5452GetBytes_bool(); try { LABEL_860_GENERAL: do { UInt32 ui32 = 0; Byte[] byArr2 = null; Byte[] byArr3 = null; strLoc = "Loc_209xy"; byArr2 = BitConverter.GetBytes(true); iCountTestcases++; if (byArr2.Length != 1) { iCountErrors++; printerr("Error_209cj! Incorrect Length of returned SByte array"); } if (byArr2[0] == 0) { iCountErrors++; printerr("Error_289cx! Incorrect value of returned SByte array"); } strLoc = "Loc_029xu"; byArr2 = BitConverter.GetBytes(false); iCountTestcases++; if (byArr2.Length != 1) { iCountErrors++; printerr("Error_190zh! Incorrect Length of returned SByte array"); } if (byArr2[0] != 0) { iCountErrors++; printerr("Error_199s1! Incorrect value of returned SByte array"); } } while (false); } catch (Exception exc_general) { ++iCountErrors; Console.WriteLine(s_strTFAbbrev + " : Error Err_8888yyy! strLoc==" + strLoc + ", exc_general==" + exc_general); } if (iCountErrors == 0) { Console.WriteLine("paSs. " + s_strTFPath + " " + s_strTFName + " ,iCountTestcases==" + iCountTestcases); return(true); } else { Console.WriteLine("FAiL! " + s_strTFPath + " " + s_strTFName + " ,iCountErrors==" + iCountErrors + " , BugNums?: " + s_strActiveBugNums); return(false); } }
public Boolean runTest() { Console.WriteLine(s_strTFPath + " " + s_strTFName + " , for " + s_strClassMethod + " , Source ver " + s_strDtTmVer); int iCountErrors = 0; int iCountTestcases = 0; String strLoc = "Loc_000oo"; String strBaseLoc = ""; String strValue = String.Empty; Co5452GetBytes_bool cc = new Co5452GetBytes_bool(); try { LABEL_860_GENERAL: do { UInt32 ui32 = 0; Byte[] byArr2 = null; Byte[] byArr3 = null; strLoc = "Loc_209xy"; byArr2 = BitConverter.GetBytes(true); iCountTestcases++; if(byArr2.Length != 1) { iCountErrors++; printerr( "Error_209cj! Incorrect Length of returned SByte array"); } if(byArr2[0] == 0) { iCountErrors++; printerr( "Error_289cx! Incorrect value of returned SByte array"); } strLoc = "Loc_029xu"; byArr2 = BitConverter.GetBytes(false); iCountTestcases++; if(byArr2.Length != 1) { iCountErrors++; printerr( "Error_190zh! Incorrect Length of returned SByte array"); } if(byArr2[0] != 0) { iCountErrors++; printerr( "Error_199s1! Incorrect value of returned SByte array"); } } while (false); } catch (Exception exc_general ) { ++iCountErrors; Console.WriteLine (s_strTFAbbrev + " : Error Err_8888yyy! strLoc=="+ strLoc +", exc_general=="+exc_general); } if ( iCountErrors == 0 ) { Console.WriteLine( "paSs. "+s_strTFPath +" "+s_strTFName+" ,iCountTestcases=="+iCountTestcases); return true; } else { Console.WriteLine("FAiL! "+s_strTFPath+" "+s_strTFName+" ,iCountErrors=="+iCountErrors+" , BugNums?: "+s_strActiveBugNums ); return false; } }
public static void Main(String[] args) { Boolean bResult = false; Co5452GetBytes_bool cbA = new Co5452GetBytes_bool(); try { bResult = cbA.runTest(); } catch (Exception exc_main){ bResult = false; Console.WriteLine(s_strTFAbbrev + " : FAiL! Error Err_9999zzz! Uncaught Exception in main(), exc_main=="+exc_main); } if (!bResult) { Console.WriteLine ("Path: "+s_strTFName + s_strTFPath); Console.WriteLine( " " ); Console.WriteLine( "FAiL! "+ s_strTFAbbrev); Console.WriteLine( " " ); } if (bResult) Environment.ExitCode = 0; else Environment.ExitCode = 1; }