Ejemplo n.º 1
0
        public void ShouldDisable_IgnoreByAttribute()
        {
            var object1 = new MyComplexIgnoreAttributeObject(1, "A string", true);
            var object2 = new MyComplexIgnoreAttributeObject(1, "A different string", true);

            var diff = object1.Diff(object2, ComparisonOptions.All | ComparisonOptions.DisableIgnoreAttributes);

            Assert.AreEqual(1, diff.Count);
        }
Ejemplo n.º 2
0
        public void ShouldIgnore_ByAttribute()
        {
            var object1 = new MyComplexIgnoreAttributeObject(1, "A string", true);
            var object2 = new MyComplexIgnoreAttributeObject(1, "A different string", true);

            var diff = object1.Diff(object2);

            Assert.AreEqual(0, diff.Count);
        }