示例#1
0
 /* Utilities */
 public static bool VerifySetsIdentical(AbstractTestLog here,
                                        UnicodeSet set1, UnicodeSet set2)
 {
     if (set1.Equals(set2))
     {
         return(true);
     }
     here.Errln("Sets differ:");
     here.Errln("UnicodeMap - HashMap");
     here.Errln(new UnicodeSet(set1).RemoveAll(set2).ToPattern(true));
     here.Errln("HashMap - UnicodeMap");
     here.Errln(new UnicodeSet(set2).RemoveAll(set1).ToPattern(true));
     return(false);
 }
示例#2
0
 public static bool VerifySetsIdentical(AbstractTestLog here,
                                        ILOG.J2CsMapping.Collections.ISet values1, ILOG.J2CsMapping.Collections.ISet values2)
 {
     if (values1.Equals(values2))
     {
         return(true);
     }
     ILOG.J2CsMapping.Collections.ISet temp;
     here.Errln("Values differ:");
     here.Errln("UnicodeMap - HashMap");
     temp = new SortedSet(values1);
     temp.RemoveAll(values2);
     here.Errln(Show(temp));
     here.Errln("HashMap - UnicodeMap");
     temp = new SortedSet(values2);
     temp.RemoveAll(values1);
     here.Errln(Show(temp));
     return(false);
 }