public void NotZeroIsTrue_NodeTest() { NotZeroIsTrue N2 = new NotZeroIsTrue(0); Assert.IsFalse(ExecutePredicate <int> .Exec(N2.Condition, N2.Data)); Assert.IsTrue(ExecutePredicate <int> .Exec(N2.Condition, 1)); }
public void SimpleTreeCreation() { SampleNode N = new SampleNode(0); N.Condition = (x) => { return(true); }; Assert.IsTrue(ExecutePredicate <int> .Exec(N.Condition, 0)); }