예제 #1
0
        public void TestNoEquation()
        {
            // test-input\_noFunction
            if (ControlFlow.Initialize())
            {
                string[] delimiters = ControlFlow.GetDelimiters();
                string[] results    = ControlFlow.ControlDirect("", "x" + delimiters[1] + "2" + delimiters[1] + "4" + delimiters[0] + "y" + delimiters[1] + "3" + delimiters[1] + "5");

                Assert.AreEqual(-3, ControlFlow.GetSuccessCode());
            }
            else
            {
                Assert.Fail();
            }
        }