Exemple #1
0
        public CompositeComparison Create()
        {
            Root.AddRange(CustomComparisons.ToArray());

            Root.AddRange(
                DefaultComparison,
                new EnumComparison(),
                new DictionaryComparison(new DefaultComparison(), Root),
                new SetComparison(Root),
                new ListComparison(Root),
                ComplexObjectComparison
                );

            return(Root);
        }
Exemple #2
0
        public ComparisonBuilder WithCustomComparison(IComparison comparison)
        {
            CustomComparisons.Add(comparison);

            return(this);
        }