public Emul8Keywords() { interaction = new CommandInteractionEater(); monitor = new Monitor(); testers = new Dictionary<string, TerminalTester>(); monitor.Interaction = interaction; }
public void AutoLoadCommandTest() { var commandInteraction = new CommandInteractionEater(); var commandInstance = new TestCommand(monitor); monitor.Parse("help", commandInteraction); var contents = commandInteraction.GetContents(); Assert.IsTrue(contents.Contains(commandInstance.Description)); }
private Token ExecuteWithResult(String value, ICommandInteraction writer) { var eater = new CommandInteractionEater(); if (Parse(value, eater)) { return(new StringToken(eater.GetContents())); } else { writer.WriteError(eater.GetError()); return(null); } }
public void SetUp() { monitor = new Monitor(); commandEater = new CommandInteractionEater(); loggerBackend = new DummyLoggerBackend(); Logger.AddBackend(loggerBackend, "dummy"); }