예제 #1
0
        public void ShallowClone_ShouldReturnNullIfSourceIsNull()
        {
            SomeTypedClass source = null;
            // ReSharper disable once ExpressionIsAlwaysNull
            var copy = source.ShallowClone();

            copy.ShouldBeNull();
        }
예제 #2
0
 public void Setup()
 {
     _source = new SomeTypedClass();
     _source.IntegerProperty         = 1;
     _source.NullableIntegerProperty = 1;
     _source.StringProperty          = "Some string";
     _source.ReferenceProperty       = _source;
     _target = new SomeTypedClass();
 }