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 filName = s_strTFAbbrev+"TestFile";
Stream s2;
FileInfo fil2;
if(File.Exists(filName))
File.Delete(filName);
strLoc = "Loc_00005";
new FileStream(filName, FileMode.Create).Close();
iCountTestcases++;
fil2 = new FileInfo(filName);
s2 = fil2.OpenWrite();
iCountTestcases++;
if(s2.CanRead)
{
iCountErrors++;
printerr( "Error_00006! File not opened canread");
}
iCountTestcases++;
if(!s2.CanWrite)
{
iCountErrors++;
printerr( "Error_00007! File was opened canWrite");
}
s2.Close();
if(File.Exists(filName))
File.Delete(filName);
}
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 )