示例#1
0
        public void ImageWithSize()
        {
            Asserts.EnsureMountainLion();
            var image = NSImage.ImageWithSize(new CGSize(50, 50), false, rect => {
                return(true);
            });

            Assert.IsNotNull(image);
        }
示例#2
0
        public void SCNGeometrySource_FromDataTest()
        {
            Asserts.EnsureMountainLion();
#pragma warning disable 0219
            SCNGeometrySource d = SCNGeometrySource.FromData(new NSData(), SCNGeometrySourceSemantic.Color, 1, false, 1, 1, 1, 1);
            foreach (SCNGeometrySourceSemantics s in Enum.GetValues(typeof(SCNGeometrySourceSemantics)))
            {
                if (!isValidEnumForPlatform(s))
                {
                    continue;
                }
                d = SCNGeometrySource.FromData(new NSData(), s, 1, false, 1, 1, 1, 1);
            }
#pragma warning restore 0219
        }
示例#3
0
 public void SCNGeometrySourceSemanticTest()
 {
     Asserts.EnsureMountainLion();
     Assert.IsNotNull(SCNGeometrySourceSemantic.Color, "Color");
 }