Exemple #1
0
        public void CopyObject_WithPrivateVariable_CopiesVariable()
        {
            // Arrange
            _obj.SetPrivateNumber(CloneableObject.Numbers.Two);

            // Act
            var clone = _obj.CopyObject();

            // Assert
            Assert.IsTrue(clone.GetPrivateNumber() == CloneableObject.Numbers.Two);
        }
Exemple #2
0
        public void CopyObject_WithNullSource_ThrowsException()
        {
            // Arrange
            _obj = null;

            // Act
            _obj.CopyObject();
        }