public void ConvertStringToMovementWithNullValueShouldThrowException() { Assert.ThrowsException <ArgumentNullException>(() => { var result = InstructionHelper.ConvertStringToMovement(null); }); }
public void ConvertStringToMovementWithLowerMValueShouldReturnMovement() { var value = "m"; var result = InstructionHelper.ConvertStringToMovement(value); Assert.AreEqual(Movement.Move, result); }
public void ConvertStringToMovementWithEmptyValueShouldThrowException() { var value = string.Empty; Assert.ThrowsException <ArgumentException>(() => { var result = InstructionHelper.ConvertStringToMovement(value); }); }
public void ConvertStringToMovementWithInvalidSingleCharacterValueShouldThrowException() { var value = "Z"; Assert.ThrowsException <ArgumentException>(() => { var result = InstructionHelper.ConvertStringToMovement(value); }); }