private void ParseAndRun(params string[] lines) { var parser = new Parser(new VimData()); parser.Reset(lines); var lineCommand = parser.ParseSingleCommand(); _interpreter.RunLineCommand(lineCommand); }
private LineCommand Parse(params string[] lines) { var parser = new Parser(lines); var result = parser.ParseSingleCommand(); Assert.True(result.IsSucceeded); return result.AsSucceeded().Item; }
private void AssertBadParse(params string[] lines) { var parser = new Parser(lines); var result = parser.ParseSingleCommand(); Assert.True(result.IsFailed); }
private LineCommand Parse(params string[] lines) { var parser = new Parser(new VimData()); parser.Reset(lines); return parser.ParseSingleCommand(); }
private void AssertBadParse(params string[] lines) { var parser = new Parser(new VimData()); parser.Reset(lines); var result = parser.ParseSingleCommand(); Assert.True(result.IsParseError); }
private void ParseAndRun(params string[] lines) { var parser = new Parser(lines); var parseResult = parser.ParseSingleCommand(); Assert.True(parseResult.IsSucceeded); _interpreter.RunLineCommand(parseResult.AsSucceeded().Item); }