예제 #1
0
 public void SetUp()
 {
     _stack = new Kernel.StackImpl();
     _io = new StubIO();
     _vm = new Kernel.VirtualMachine(_io, _stack);
 }
예제 #2
0
 void TestPrinting(string expectedPrinted, string code)
 {
     var io = new StubIO();
     Interpreter.executeWithIO(code, io);
     Assert.That(io.Printed, Is.EqualTo(expectedPrinted));
 }