public SetProps ( int iProp, string sProp ) : void | ||
iProp | int | |
sProp | string | |
Результат | void |
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()); }
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()); }