Example #1
0
        public void TestBasicMathSentenceWithTwoOrMoreNumbers()
        {
            string          s        = "1+2+3-3-2-1";
            MathExpressions m        = new MathExpressions();
            string          sentence = m.BasicMathExpression(s);

            Assert.AreEqual(sentence, "0");
        }
Example #2
0
        public void TestBasicMathSentenceWithNumberAndTrigonometry()
        {
            string          s        = "2+cos(1)";
            MathExpressions m        = new MathExpressions();
            string          sentence = m.BasicMathExpression(s);

            Assert.AreEqual(sentence, "3");
        }