Example #1
0
        public void CanCopyFields()
        {
            var c = new ClassWithFields();

            c.SetProps(2, "string");

            var newC = c.ShallowCopy();

            Assert.Equal(c.GetIntProp(), newC.GetIntProp());
            Assert.Equal(c.GetStringProp(), newC.GetStringProp());
        }
Example #2
0
 public void SetValue(ClassWithFields val)
 {
     _OtherObj = val;
 }
Example #3
0
 public void SetValue(ClassWithFields val) {
     _OtherObj = val;
 }
Example #4
0
        public void CanCopyFields()
        {
            var c = new ClassWithFields();
            c.SetProps(2, "string");

            var newC = c.ShallowCopy();
            Assert.Equal(c.GetIntProp(), newC.GetIntProp());
            Assert.Equal(c.GetStringProp(), newC.GetStringProp());
        }