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
{
StringReader sr;
strLoc = "Loc_98yg7";
iCountTestcases++;
try {
sr = new StringReader(null);
String strTemp = sr.ReadToEnd();
iCountErrors++;
printerr( "Error_18syx! StringReader should only hold null");
sr.ReadLine();
sr.Peek();
sr.Read();
sr.Close();
} catch (ArgumentNullException exc) {
printinfo("Expected exception thrown, exc=="+exc.Message);
}catch (Exception exc) {
iCountErrors++;
printerr("Error_109xu! Unexpected exception thrown, exc=="+exc.ToString());
}
strLoc = "Loc_4790s";
sr = new StringReader(String.Empty);
iCountTestcases++;
if(!sr.ReadToEnd().Equals(String.Empty)) {
iCountErrors++;
printerr( "Error_099xa! Incorrect construction");
}
strLoc = "Loc_8388x";
sr = new StringReader("Hello\0World");
iCountTestcases++;
if(!sr.ReadToEnd().Equals("Hello\0World")) {
iCountErrors++;
printerr( "Error_1099f! Incorrect construction");
}
} 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 )