public static string ExecuteInstructions(string instructionString) { var testSocket = new TestSocket(string.Format("{0:000000}:{1}", instructionString.Length, instructionString)); var messenger = new Messenger(testSocket); var interpreter = new Interpreter(messenger, string.Empty, Builder.Service()); interpreter.ProcessInstructions(); return testSocket.Output; }
public void SetUp() { session = new TestSession(); interpreter = new Interpreter(new Messenger(session), string.Empty, Builder.Service()); }