private void CompareToDefaults(ColorComparator c) { var colors = HSSFColor.GetIndexHash(); IEnumerator it = colors.Keys.GetEnumerator(); while (it.MoveNext()) { int index = (int)it.Current; HSSFColor expectedColor = (HSSFColor)colors[index]; HSSFColor paletteColor = hssfPalette.GetColor((short)index); c.Compare(expectedColor, paletteColor); } }
private void CompareToDefaults(ColorComparator c) { Hashtable colors = HSSFColor.GetIndexHash(); IEnumerator it = colors.Keys.GetEnumerator(); while (it.MoveNext()) { int index = (int)it.Current; HSSFColor expectedColor = (HSSFColor)colors[index]; HSSFColor paletteColor = hssfPalette.GetColor((short)index); c.Compare(expectedColor, paletteColor); } }