Пример #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);
 }