public void TestCaseEvaluation() { var @operator = new ArithmeticNegateOperator(TypeConverter); AssertEvaluation <double>(@operator, 1.33, -1.33); AssertEvaluation <double>(@operator, 0, 0); }
public void TestCaseConstruction3() { var @operator = new ArithmeticNegateOperator("operator", TypeConverter); Assert.AreEqual("operator", @operator.Symbol); Assert.AreEqual(1, @operator.Precedence); }
public void TestCaseEvaluationExceptions() { var @operator = new ArithmeticNegateOperator(TypeConverter); ExpectArgumentNullException("context", () => @operator.Evaluate(null, 1)); }
public void TestCaseConstruction2() { var @operator = new ArithmeticNegateOperator(TypeConverter); Assert.AreEqual("-", @operator.Symbol); }