public Compare ( object object1, object object2 ) : bool | ||
object1 | object | |
object2 | object | |
Résultat | bool |
public static string FindDifferences(object expected, object actual) { var compare = new CompareObjects { MaxDifferences = 10 }; if (compare.Compare(expected, actual)) { return(null); } return(compare.DifferencesString .Trim('\r', '\n') .Replace("object1", "expected") .Replace("object2", "actual")); }
public static string FindDifferences(object expected, object actual) { var compare = new CompareObjects { MaxDifferences = 10 }; if (compare.Compare(expected, actual)) return null; return compare.DifferencesString .Trim('\r', '\n') .Replace("object1", "expected") .Replace("object2", "actual"); }