public virtual bool runTest()
{
Console.Error.WriteLine( "Co1187ToString_Dupl2.cs runTest() started." );
StringBuilder sblMsg = new StringBuilder( 99 );
int iCountErrors = 0;
int iCountTestcases = 0;
int iErrorBits = 0;
String str2 = null;
StringBuilder sbl2 = null;
Guid guid2;
Guid guid3;
try
{
LABEL_860_GENERAL:
do
{
++iCountTestcases;
guid2 = Guid.NewGuid();
++iCountTestcases;
guid3 = new Guid( guid2.ToString() );
++iCountTestcases;
if ( ! guid2.Equals( guid3 ) )
{
++iCountErrors;
Console.Error.WriteLine( "POINTTOBREAK: E_251wn! (Co1187ToString_Dupl2)" );
sblMsg.Length = 0 ;
sblMsg.Append( "EXTENDEDINFO: (E_251wn ,Co1187ToString_Dupl2) guid2.ToString()==" );
sblMsg.Append( guid2.ToString() );
sblMsg.Append( " ,guid3.ToString()==" );
sblMsg.Append( guid3.ToString() );
Console.Error.WriteLine( sblMsg.ToString() );
}
++iCountTestcases;
if ( guid2.GetHashCode() != guid3.GetHashCode() )
{
++iCountErrors;
Console.Error.WriteLine( "POINTTOBREAK: E_228kc! (Co1187ToString_Dupl2)" );
sblMsg.Length = 0 ;
sblMsg.Append( "EXTENDEDINFO: (E_228kc ,Co1187ToString_Dupl2) guid2.ToString()==" );
sblMsg.Append( guid2.ToString() );
sblMsg.Append( " ,guid3.ToString()==" );
sblMsg.Append( guid3.ToString() );
Console.Error.WriteLine( sblMsg.ToString() );
}
++iCountTestcases;
guid2 = new Guid( s_strGuid2 );
guid3 = new Guid( s_strGuid2 );
++iCountTestcases;
if ( ! guid2.Equals( guid3 ) )
{
++iCountErrors;
Console.Error.WriteLine( "POINTTOBREAK: E_241xl! (Co1187ToString_Dupl2)" );
sblMsg.Length = 0 ;
sblMsg.Append( "EXTENDEDINFO: (E_241xl ,Co1187ToString_Dupl2) guid2.ToString()==" );
sblMsg.Append( guid2.ToString() );
sblMsg.Append( " ,guid3.ToString()==" );
sblMsg.Append( guid3.ToString() );
Console.Error.WriteLine( sblMsg.ToString() );
}
++iCountTestcases;
if ( 0 != guid2.ToString().CompareTo( s_strGuid2) )
{
++iCountErrors;
Console.Error.WriteLine( "POINTTOBREAK: E_266uj! (Co1187ToString_Dupl2)" );
sblMsg.Length = 0 ;
sblMsg.Append( "EXTENDEDINFO: (E_266uj ,Co1187ToString_Dupl2) guid2.ToString()==" );
sblMsg.Append( guid2.ToString() );
sblMsg.Append( "s_strGuid2.ToString() = " + s_strGuid2.ToString() );
Console.Error.WriteLine( sblMsg.ToString() );
}
++iCountTestcases;
if ( guid2.GetHashCode() != 0x41D47C9 )
{
++iCountErrors;
Console.Error.WriteLine( "POINTTOBREAK: E_237hg! (Co1187ToString_Dupl2)" );
sblMsg.Length = 0 ;
sblMsg.Append( "EXTENDEDINFO: (E_237hg ,Co1187ToString_Dupl2) guid2.ToString()==" );
sblMsg.Append( guid2.ToString() );
Console.Error.WriteLine( sblMsg.ToString() );
}
} while (false);
}
catch( Exception exc_general )
{
++iCountErrors;
Console.Error.WriteLine( "POINTTOBREAK: find error E_876yxw, general exception error! (Co1187ToString_Dupl2)" );
sblMsg.Length = 0 ;
sblMsg.Append( "EXTENDEDINFO: (E_876yxw ,Co1187ToString_Dupl2) exc_general.ToString()==" );
sblMsg.Append( exc_general.ToString() );
Console.Error.WriteLine( sblMsg.ToString() );
}
if ( iErrorBits != 0 )
{
++iCountErrors;
Console.Error.WriteLine( "POINTTOBREAK: find error E_678xy (Co1187ToString_Dupl2)" );
sblMsg.Length = 0 ;
sblMsg.Append( "EXTENDEDINFO: (E_678xy ,Co1187ToString_Dupl2) iErrorBits==" );
sblMsg.Append( iErrorBits );
Console.Error.WriteLine( sblMsg.ToString() );
}
if ( iCountErrors == 0 )
{
sblMsg.Length = 0 ;
sblMsg.Append( "Guid\\Co1187ToString_Dupl2.cs: paSs. iCountTestcases==" );
sblMsg.Append( iCountTestcases );
Console.Error.WriteLine( sblMsg.ToString() );
return true;
}
else
{
sblMsg.Length = 0 ;
sblMsg.Append( "Co1187ToString_Dupl2.cs iCountErrors==" );
sblMsg.Append( iCountErrors );
Console.Error.WriteLine( sblMsg.ToString() );
Console.Error.WriteLine( "Co1187ToString_Dupl2.cs FAiL !" );
return false;
}
}
public static void Main( String[] args )