public void CustomSubClassIsClonable() { var foo = new CustomSubClass <int>(10, 20, 30, 40, 50); var bar = Cloning.Clone(foo); Assert.Equal(foo.Field1, bar.Field1); Assert.Equal(foo.Field2, bar.Field2); Assert.Equal(foo.Field3, bar.Field3); Assert.Equal(foo.Field4, bar.Field4); Assert.Equal(foo.Field5, bar.Field5); }
public void CustomSubClassCreatedAndDisposed() { using (var obj = new CustomSubClass()) { } }