public void MovedWithMoveStringsInRightOrder() { var mock = new Mock <IRobot>(MockBehavior.Strict); mock.Setup(r => r.Initialize(new Point(10, 22))); var processor = new InputFileProcessor("./fixtures/input1.txt", mock.Object); var seq = new MockSequence(); mock.InSequence(seq).Setup(m => m.Move(MoveDirection.E, 2)); mock.InSequence(seq).Setup(m => m.Move(MoveDirection.N, 1)); processor.process(); }
public void InitializesWithInitialPosition() { processor.process(); mock.Verify(r => r.Initialize(new Point(10, 22)), Times.Once()); }