private void TestException( String test, String expected, String moniker) {
iCountTestcases++;
if ( m_verbose ) Console.Write(moniker);
m_strLoc = "Loc_TestException'"+test+"'";
try {
Double.Parse( test, CultureInfo.InvariantCulture );
iCountErrors++;
Console.WriteLine( Environment.NewLine + "No Exception Thrown " +"->"+ m_strLoc );
Console.WriteLine( "Failed: '"+ expected +"' expected. '"+ test +"' did not throw an exception!");
}
catch ( Exception e ) {
if( e.GetType().FullName.Equals( expected ) ) return;
iCountErrors++;
Console.WriteLine( Environment.NewLine + e +"->"+ m_strLoc );
Console.WriteLine( "Failed: '"+ expected +"' expected, '"+e.ToString()+"' received. ");
return;
}
}
public static void Main( String[] args )