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;
Guid gd = new Guid();
Guid gd1;
Guid gd2;
Hashtable table;
try
{
strLoc = "Loc_93475sdg";
iCountTestcases++;
gd1 = Guid.NewGuid();
gd2 = Guid.NewGuid();
if(gd1==gd2){
iCountErrors++;
Console.WriteLine("Err_734wdg! wrong result returned, ");
}
strLoc = "Loc_93475sdg";
iCountTestcases++;
table = new Hashtable();
try{
for(int i=0; i<1000; i++) {
gd = Guid.NewGuid();
table.Add(gd, null);
}
}catch(Exception ex){
iCountErrors++;
Console.WriteLine("GUID: "+gd);
Console.WriteLine("Err_985tsdg! Unexpected exception thrown, " + ex.GetType().Name);
}
iCountTestcases++;
gd1 = Guid.NewGuid();
gd2 = new Guid(gd1.ToByteArray());
if(gd1!=gd2){
iCountErrors++;
Console.WriteLine("Err_932475tsgd! wrong result returned, ");
}
} 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+" ,inCountErrors=="+iCountErrors.ToString()+" , BugNums?: "+s_strActiveBugNums );
return false;
}
}
public static void Main(String[] args)