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

            copy.ShouldBeNull();
        }
Exemple #2
0
        public void ShallowClone_ShouldCopyIntegers()
        {
            var copy = _source.ShallowClone();

            copy.IntegerProperty.ShouldEqual(_source.IntegerProperty);
        }