예제 #1
0
 public void Inc_Tape_By_One()
 {
     var instruction = new MoveTape(1);
     var m = new MockGenerator();
     instruction.Emit(m);
     Assert.AreEqual(1, m.TapeAdvances);
 }
예제 #2
0
 public void Dec_Tape_By_One()
 {
     var instruction = new MoveTape(-1);
     var m = new MockGenerator();
     instruction.Emit(m);
     Assert.AreEqual(1, m.TapeBacks);
 }