示例#1
0
        public void FindCodeCompletionExpression(string command, string expression, string prefix)
        {
            var ex = CodeCompletion.GetExpressionToComplete(command);

            Assert.AreEqual(expression, ex.Expression);
            Assert.AreEqual(prefix, ex.Prefix);
        }
示例#2
0
 /// <summary>Returns completion options and completion string for the currently written command</summary>
 public Tuple <List <string>, string> CodeComplete(string command)
 {
     return(CodeCompletion.GetCompletionOptions(_scriptState, _imports, command));
 }