public void Defaults_BackingFields() { if (PolylineViewPoker.NewRefcountEnabled()) { Assert.Inconclusive("backing fields are removed when newrefcount is enabled"); } using (var pv = new PolylineViewPoker()) { Assert.Null(pv.PolylineBackingField, "1a"); Assert.Null(pv.Polyline, "2a"); } }
public void Polygon_BackingFields() { if (PolylineViewPoker.NewRefcountEnabled()) { Assert.Inconclusive("backing fields are removed when newrefcount is enabled"); } using (var p = new MKPolyline()) using (var pv = new PolylineViewPoker(p)) { Assert.AreSame(p, pv.PolylineBackingField, "1a"); Assert.AreSame(p, pv.Polyline, "2a"); } }