public void WhenCalledToActThenReturnsAEastFacingPosition() { var rightInstruction = new RightInstruction(); var newPosition = rightInstruction.TransformPosition(this.validPosition); Assert.AreEqual(Orientation.E, newPosition.Orientation); }
public void HaveTheCorrectCommand() { var rightInstruction = new RightInstruction(); Assert.AreEqual('R', rightInstruction.Command); }
public void WhenCalledToActThenDoesNotAlterXOrY() { var rightInstruction = new RightInstruction(); var newPosition = rightInstruction.TransformPosition(this.validPosition); Assert.AreEqual(0, newPosition.X); Assert.AreEqual(0, newPosition.Y); }