public void IsNullFalse()
 {
     IsNull c = new IsNull("TheProperty");
     var j = GetJ(@"{}");
     Assert.IsFalse(c.Evaluate(j));
     Assert.AreEqual(@"{""Name"":""IsNull"",""PropertyName"":""TheProperty"",""PropertyValue"":null,""PropertyHasValue"":false,""Description"":""The property 'TheProperty' was expected to be Null.""}", c.GetState(j));
 }
Beispiel #2
0
 public void IsNullIsTrue()
 {
     var o = GetJ(@"{ ""TheProperty"" : null }");
     IsNull isnull = new IsNull("TheProperty");
     Assert.IsTrue(isnull.Evaluate(o));
 }
Beispiel #3
0
 public void IsNullIsFalse()
 {
     var o = GetJ(@"{ ""TheProperty"" : ""TheValue"" }");
     IsNull isnull = new IsNull("TheProperty");
     Assert.IsFalse(isnull.Evaluate(o));
 }
Beispiel #4
0
 public void IsNullPropertyNull()
 {
     var o = GetJ(@"{ ""TheProperty"" : null }");
     IsNull isnull = new IsNull(null);
     Assert.IsFalse(isnull.Evaluate(o));
 }
Beispiel #5
0
 public void IsNullJobNull()
 {
     IsNull isnull = new IsNull("TheProperty");
     Assert.IsFalse(isnull.Evaluate(null));
 }