Example #1
0
        /// <summary>
        /// Compares two TDoc data documents
        /// </summary>
        public static DocLogicalComparer.Result CompareTo <TDoc>(this TDoc expect, TDoc got) where TDoc : Doc
        {
            var cmp = new DocLogicalComparer()
            {
                LoopByA                = true,
                LoopByB                = true,
                LoopByAmorphous        = true,
                FindMissingInAmorphous = true
            };

            var result = cmp.Compare(expect, got);

            return(result);
        }
Example #2
0
 internal Result(DocLogicalComparer comparer, Doc a, Doc b)
 {
     Comparer = comparer;
     A        = a;
     B        = b;
 }