Esempio n. 1
0
        public void SmartlyCloneTest_ShouldReturnOriginal_IfNonValueNonCloneableIsPassed()
        {
            // Arrange
            var a = new NonValueNonCloneableMock();

            a.ValueMember  = 1;
            a.ObjectMember = new object();

            // Act
            var b = (NonValueNonCloneableMock)a.SmartlyClone();

            // Assert
            Assert.AreSame(a, b);
        }
Esempio n. 2
0
        public void SmartlyCloneTest_ShouldReturnOriginal_IfNonValueNonCloneableIsPassed()
        {
            // Arrange
            var a = new NonValueNonCloneableMock();
            a.ValueMember = 1;
            a.ObjectMember = new object();

            // Act
            var b = (NonValueNonCloneableMock)a.SmartlyClone();

            // Assert
            Assert.AreSame(a, b);
        }