Exemplo n.º 1
0
        public void Empty()
        {
            Assert.True(CGRect.Empty.IsEmpty, "Empty.IsEmpty");
            Assert.False(CGRect.Empty.IsNull(), "Empty.IsNull");
            Assert.False(CGRect.Empty.IsInfinite(), "Empty.IsInfinite");

            // for System.Drawing compatibility this was named Empty - test confirms it's identical to CGRectZero
            var handle = Dlfcn.dlopen(Constants.CoreGraphicsLibrary, 0);

            try {
                var zero = Dlfcn.GetCGRect(handle, "CGRectZero");
                Assert.AreEqual(CGRect.Empty, zero, "CGRectZero");
            } finally {
                Dlfcn.dlclose(handle);
            }
        }