Exemplo n.º 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"));
     }
 }
Exemplo n.º 2
0
 protected ComparerResult CompareObjects(object x, object y, TextMultipleMethodsTolerance tolerance)
 {
     return(CompareStrings(x as string, y as string, tolerance));
 }