示例#1
0
 protected ComparerResult CompareStrings(string x, string y, TextMultipleMethodsTolerance tolerance)
 {
     if (tolerance.Implementation.Invoke(x, y))
     {
         return(ComparerResult.Equality);
     }
     else
     {
         return(new ComparerResult("different"));
     }
 }
示例#2
0
 protected ComparerResult CompareObjects(object x, object y, TextMultipleMethodsTolerance tolerance)
 {
     return(CompareStrings(x as string, y as string, tolerance));
 }