Esempio n. 1
0
        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");
        }