public void Defaults_BackingFields() { if (CircleViewPoker.NewRefcountEnabled()) { Assert.Inconclusive("backing fields are removed when newrefcount is enabled"); } using (var cv = new CircleViewPoker()) { Assert.Null(cv.CircleBackingField, "1a"); Assert.Null(cv.Circle, "2a"); } }
public void Circle_BackingFields() { if (CircleViewPoker.NewRefcountEnabled()) { Assert.Inconclusive("backing fields are removed when newrefcount is enabled"); } using (var c = new MKCircle()) using (var cv = new CircleViewPoker(c)) { Assert.AreSame(c, cv.CircleBackingField, "1a"); Assert.AreSame(c, cv.Circle, "2a"); } }