예제 #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);
        }
예제 #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);
 }