예제 #1
0
        public void ToStringReturnsValue()
        {
            const int constant     = 5;
            var       constantTerm = new ConstantTerm(constant);

            Assert.AreEqual(constant.ToString(), constantTerm.ToString());
        }
예제 #2
0
        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);
        }