public void InstantiationAndProperties() { NegationOperator op = new NegationOperator(); Assert.IsNull(op.Expression); MockBooleanExpression expression = new MockBooleanExpression(true); op = new NegationOperator(expression); Assert.IsTrue(op.Expression == expression); op.Expression = null; Assert.IsNull(op.Expression); }
public void InstantiationAndProperties() { ConditionalAndOperator op = new ConditionalAndOperator(); Assert.IsNull(op.LeftExpression); Assert.IsNull(op.RightExpression); MockBooleanExpression left = new MockBooleanExpression(true); MockBooleanExpression right = new MockBooleanExpression(true); op = new ConditionalAndOperator(left, right); Assert.IsTrue(op.LeftExpression == left); Assert.IsTrue(op.RightExpression == right); op.LeftExpression = null; op.RightExpression = null; Assert.IsNull(op.LeftExpression); Assert.IsNull(op.RightExpression); }