public void ShallowClone_ShouldReturnNullIfSourceIsNull() { SomeTypedClass source = null; // ReSharper disable once ExpressionIsAlwaysNull var copy = source.ShallowClone(); copy.ShouldBeNull(); }
public void Setup() { _source = new SomeTypedClass(); _source.IntegerProperty = 1; _source.NullableIntegerProperty = 1; _source.StringProperty = "Some string"; _source.ReferenceProperty = _source; _target = new SomeTypedClass(); }