示例#1
0
 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;
 }
示例#2
0
 public void SetUp()
 {
     session = new TestSession();
     interpreter = new Interpreter(new Messenger(session), string.Empty, Builder.Service());
 }