public void WhenCalledToActThenReturnsAWestFacingPosition() { var leftInstruction = new LeftInstruction(); var newPosition = leftInstruction.TransformPosition(this.validPosition); Assert.AreEqual(Orientation.W, newPosition.Orientation); }
public void HaveTheCorrectCommand() { var leftInstruction = new LeftInstruction(); Assert.AreEqual('L', leftInstruction.Command); }
public void WhenCalledToActThenDoesNotAlterXOrY() { var leftInstruction = new LeftInstruction(); var newPosition = leftInstruction.TransformPosition(this.validPosition); Assert.AreEqual(0, newPosition.X); Assert.AreEqual(0, newPosition.Y); }