public void ToStringReturnsValue() { const int constant = 5; var constantTerm = new ConstantTerm(constant); Assert.AreEqual(constant.ToString(), constantTerm.ToString()); }
public void ConstantTerm_ToStringTest() { // setup test IExpressionTerm term = new ConstantTerm(3); // run test string result = term.ToString(); // validate results Assert.IsFalse(string.IsNullOrEmpty(result)); Assert.AreEqual("3", result); }