Esempio n. 1
0
        public void ShallowWithNullNoChanges()
        {
            PrimitivePropertiesNullable p1 = new PrimitivePropertiesNullable();
            PrimitivePropertiesNullable p2 = new PrimitivePropertiesNullable();
            _compare.Config.CompareChildren = false;

            ComparisonResult result = _compare.Compare(p1, p2);

            if (!result.AreEqual)
                throw new Exception(result.DifferencesString);
        }
Esempio n. 2
0
 public void ShallowWithNullWithChanges()
 {
     PrimitivePropertiesNullable p1 = new PrimitivePropertiesNullable();
     PrimitivePropertiesNullable p2 = new PrimitivePropertiesNullable();
     p2.BooleanProperty = true;
     _compare.Config.CompareChildren = false;
     Assert.IsFalse(_compare.Compare(p1, p2).AreEqual);
 }