private bool compareStrTest( string sLeftStr, bool bLeftWild, string sRightStr, bool bRightWild, CompareFlags compareFlags, bool bExpectedEqual, DbSystem dbSystem) { int iCmp; beginTest( "Compare Strings, Str1: \"" + sLeftStr + "\", Str2: \"" + sRightStr + "\""); try { iCmp = dbSystem.compareStrings( sLeftStr, bLeftWild, sRightStr, bRightWild, compareFlags, Languages.FLM_US_LANG); } catch (XFlaimException ex) { endTest( false, ex, "calling compareStrings"); return( false); } if ((bExpectedEqual && iCmp != 0) || (!bExpectedEqual && iCmp == 0)) { endTest( false, false); System.Console.WriteLine( "Expected Equal [{0}] != Result [{1}]", bExpectedEqual, iCmp); System.Console.WriteLine( "Compare Flags: {0}", compareFlags); System.Console.WriteLine( "Left Wild: {0}", bLeftWild); System.Console.WriteLine( "Right Wild: {0}", bRightWild); } endTest( false, true); return( true); }