示例#1
0
        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");
            }
        }
示例#2
0
        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");
                }
        }