Esempio n. 1
0
        public void CanCopyPrivateProperties()
        {
            var c = new ClassWithPrivateProperties();

            c.SetValues(2, "string");

            var newC = c.ShallowCopy();

            Assert.Equal(c.GetIntProp(), newC.GetIntProp());
            Assert.Equal(c.GetStringProp(), newC.GetStringProp());
        }
Esempio n. 2
0
 public void CanCopyPrivateProperties()
 {
     var c = new ClassWithPrivateProperties();
     c.SetValues(2, "string");
    
     var newC = c.ShallowCopy();
     Assert.Equal(c.GetIntProp(), newC.GetIntProp());
     Assert.Equal(c.GetStringProp(), newC.GetStringProp());
 }