Ejemplo n.º 1
0
        public void IntersectSetPropertiesTest()
        {
            var availableProperties = new List <string> {
                "LeftExpression", "RightExpression"
            };

            using (var llower = NSExpression.FromConstant(new NSNumber(0)))
                using (var lupper = NSExpression.FromConstant(new NSNumber(5)))
                    using (var lh = NSExpression.FromAggregate(new NSExpression [] { llower, lupper }))
                        using (var rlower = NSExpression.FromConstant(new NSNumber(10)))
                            using (var rupper = NSExpression.FromConstant(new NSNumber(50)))
                                using (var rh = NSExpression.FromAggregate(new NSExpression [] { rlower, rupper }))
                                    using (var expression = NSExpression.FromIntersectSet(lh, rh)) {
                                        Assert.AreEqual(NSExpressionType.IntersectSet, expression.ExpressionType);
                                        TestProperties(expression, availableProperties);
                                    }
        }