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)); }
public void IsNullIsTrue() { var o = GetJ(@"{ ""TheProperty"" : null }"); IsNull isnull = new IsNull("TheProperty"); Assert.IsTrue(isnull.Evaluate(o)); }
public void IsNullIsFalse() { var o = GetJ(@"{ ""TheProperty"" : ""TheValue"" }"); IsNull isnull = new IsNull("TheProperty"); Assert.IsFalse(isnull.Evaluate(o)); }
public void IsNullPropertyNull() { var o = GetJ(@"{ ""TheProperty"" : null }"); IsNull isnull = new IsNull(null); Assert.IsFalse(isnull.Evaluate(o)); }
public void IsNullJobNull() { IsNull isnull = new IsNull("TheProperty"); Assert.IsFalse(isnull.Evaluate(null)); }