public void ExecuteArguments_TestExecuteCalledAfterSecondAdd(IClFunction function1, IClFunction function2)
        {
            function1.Name = "test";
            function2.Name = "test2";
            _consoleParser.AddFunction(function1);
            _consoleParser.AddFunction(function2);
            _consoleParser.ExecuteArguments(new[] { "test2" });

            function2.Received(1).Execute();
        }
        public void ExecuteArguments_TestExecuteCalledAfterAddList(IClFunction function1, IClFunction function2)
        {
            function1.Name = "test";
            function2.Name = "test2";
            _consoleParser.AddFunctions(new List<IClFunction> { function1, function2 });
            _consoleParser.ExecuteArguments(new[] { "test2" });

            function2.Received(1).Execute();
        }
        public void ExecuteArguments_TestExecuteCalled(IClFunction function)
        {
            function.Name = "test";
            _consoleParser.AddFunction(function);
            _consoleParser.ExecuteArguments(new[] { "test" });

            function.Received(1).Execute();
        }