public bool runTest()
{
Console.WriteLine(s_strTFPath + "\\" + s_strTFName + " , for " + s_strClassMethod + " , Source ver " + s_strDtTmVer);
String strLoc = "Loc_000oo";
String strValue = String.Empty;
int iCountErrors = 0;
int iCountTestcases = 0;
try
{
String[] ReturnValue;
Char[] InputValue = {'d', 'D', 'f', 'F', 'g', 'G', 'm', 'M', 'r', 'R', 's', 't', 'T', 'u', 'U', 'y', 'Y'};
DateTime Test = new DateTime(2000, 06, 06);
CultureInfo ciTest = new CultureInfo (11);
strLoc = "Loc_400vy";
iCountTestcases++;
foreach (Char inputchar in InputValue)
{
ReturnValue = Test.GetDateTimeFormats(inputchar);
if (ReturnValue.Length < 1)
{
++iCountErrors;
printerr( "Error_100aa! No Date Time Formats were returned");
}
}
strLoc = "Loc_524vy";
iCountTestcases++;
try
{
ReturnValue = Test.GetDateTimeFormats('a');
iCountErrors++;
printerr( "Error_200bb! no exception thrown");
}
catch (FormatException fe)
{
printinfo( "Info_512ad! Caught FormatException");
}
catch (Exception e)
{
++iCountErrors;
printerr( "Error_200aa! Wrong exception thrown: " + e.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 )