Exemplo n.º 1
0
        public void fix_parenthesis_for_argument_less_method()
        {
            const string src    = "block_the_order";
            var          engine = new ShoppingCartScriptEngine(new Order());

            Assert.AreEqual("block_the_order()", engine.Prepare(src));
        }
Exemplo n.º 2
0
        public void fix_parenthesis_for_one_argument_method()
        {
            const string src    = "apply_discount 10%";
            var          engine = new ShoppingCartScriptEngine(new Order());

            Assert.AreEqual("apply_discount(10%)", engine.Prepare(src));
        }