Ejemplo n.º 1
0
 public void GetSetExpression()
 {
     using (var exp = new NSExpressionDescription()) {
         exp.Name = "Test";
         Assert.IsNull(exp.Expression, "An unset Expression should be null.");
         exp.Expression = new NSExpression(NSExpressionType.Block);
         Assert.IsNotNull(exp.Expression, "Expression was not correctly set.");
     }
 }
Ejemplo n.º 2
0
 public void GetSetResultType()
 {
     using (var exp = new NSExpressionDescription()) {
         exp.Name = "Test";
         Assert.AreEqual(exp.ResultType, NSAttributeType.Undefined,
                         "The default value of an unset ResultType should be 'Undefined'");
         exp.ResultType = NSAttributeType.Boolean;
         Assert.AreEqual(NSAttributeType.Boolean, exp.ResultType,
                         "ResultType was not correctly set.");
     }
 }
Ejemplo n.º 3
0
 public void WeakFramework()
 {
     using (var exp = new NSExpressionDescription())
         Assert.That(exp.Handle, Is.Not.EqualTo(IntPtr.Zero), "Handle");
 }