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