public bool 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 strValue = String.Empty;
try
{
UInt32 i32a, i32b, i32ret;
strLoc = "Loc_09utg";
i32a = UInt32.Parse("0");
i32b = UInt32.Parse("0");
i32ret = Math.Min(i32a, i32b);
iCountTestcases++;
if(i32ret != UInt32.Parse("0"))
{
iCountErrors++;
printerr("Error_20xxu");
}
strLoc = "Loc_209uc";
i32a = UInt32.Parse("1");
i32b = UInt32.Parse("0");
i32ret = Math.Min(i32a,i32b);
iCountTestcases++;
if(i32ret != UInt32.Parse("0"))
{
iCountErrors++;
printerr("Error_230uc! Expected==0 , value=="+i32ret.ToString());
}
strLoc = "Loc_209cc";
i32a = UInt32.Parse("0");
i32b = UInt32.Parse("1");
i32ret = Math.Min(i32a, i32b);
iCountTestcases++;
if(i32ret != UInt32.Parse("0"))
{
iCountErrors++;
printerr("Error_948nc! Expected==1 , value=="+i32ret.ToString());
}
strLoc = "Loc_20uxw";
i32a = UInt32.MaxValue;
i32b = UInt32.MinValue;
i32ret = Math.Min(i32a, i32b);
iCountTestcases++;
if(i32ret != UInt32.MinValue)
{
iCountErrors++;
printerr("Error_2908x! expected=="+UInt32.MinValue.ToString()+" , value=="+i32ret.ToString());
}
strLoc = "Loc_6745x";
i32a = UInt32.Parse("10");
i32b = UInt32.Parse("9");
i32ret = Math.Min(i32a, i32b);
iCountTestcases++;
if(i32ret != UInt32.Parse("9"))
{
iCountErrors++;
printerr("Error_298xz! Expected==10 , value=="+i32ret.ToString());
}
strLoc = "Loc_298yx";
i32a = UInt32.Parse("9");
i32b = UInt32.Parse("10");
i32ret = Math.Min(i32a, i32b);
iCountTestcases++;
if(i32ret != UInt32.Parse("9"))
{
iCountErrors++;
printerr("Error_298di! Expeceted==10 , value=="+i32ret.ToString());
}
strLoc = "Loc_90uxf";
i32a = UInt32.MaxValue;
i32b = UInt32.MaxValue;
i32ret = Math.Min(i32a, i32b);
iCountTestcases++;
if(i32ret != UInt32.MaxValue)
{
iCountErrors++;
printerr("Error_298xq! Expected=="+UInt32.MaxValue.ToString()+" , value=="+i32ret.ToString());
}
} catch (Exception exc_general ) {
++iCountErrors;
Console.WriteLine (s_strTFAbbrev + " : Error Err_8888yyy! strLoc=="+ strLoc +", exc_general=="+exc_general.ToString());
}
if ( iCountErrors == 0 )
{
Console.WriteLine( "paSs. "+s_strTFName+" ,iCountTestcases=="+iCountTestcases.ToString());
return true;
}
else
{
Console.WriteLine("FAiL! "+s_strTFName+" ,iCountErrors=="+iCountErrors.ToString()+" , BugNums?: "+s_strActiveBugNums );
return false;
}
}
public void printerr ( String err )