public virtual bool runTest()
{
IList charData;
int iCountErrors = 0;
int iCountTestcases = 0;
charData = m_CharData.GetValueList();
for (int iCurChar = 0; iCurChar < m_CharData.Count; iCurChar++)
{
CharInfo curCharInfo;
curCharInfo = (CharInfo) charData[iCurChar];
if ( (curCharInfo.eCategory == UnicodeCategory.MathSymbol) ||
(curCharInfo.eCategory == UnicodeCategory.CurrencySymbol) ||
(curCharInfo.eCategory == UnicodeCategory.ModifierSymbol) ||
(curCharInfo.eCategory == UnicodeCategory.OtherSymbol) )
{
iCountTestcases++ ;
if ( Char.IsSymbol(curCharInfo.chChar) )
{
Console.WriteLine("Passed :: " +
"Categories match for char '" +
((int)(curCharInfo.chChar)).ToString("x4") +
"' at position " + iCurChar.ToString("d3") + " Category :: " +
curCharInfo.eCategory);
}
else
{
iCountErrors++ ;
Console.WriteLine("Failed :: " +
"Category mismatch for char '0x" +
((int)(curCharInfo.chChar)).ToString("x4") +
"' at position " + iCurChar.ToString("d3") +
" UCD Category : " + curCharInfo.eCategory +
" NLS+ Category : " +
Char.IsSymbol(curCharInfo.chChar) );
}
}
}
if ( iCountErrors == 0 ){
Console.Error.Write( "Char_IsSymbol_char: paSs. iCountTestcases== " + iCountTestcases.ToString("d3"));
return true;
}
else{
Console.Error.Write( "Char_IsSymbol_char: Fail. iCountErrors== " + iCountErrors.ToString("d3"));
return false;
}
}
protected UnicodeCategory TranslateUnicodeCategory(string strCatAbbrev)