Beispiel #1
0
 public void ConvertStringToMovementWithNullValueShouldThrowException()
 {
     Assert.ThrowsException <ArgumentNullException>(() =>
     {
         var result = InstructionHelper.ConvertStringToMovement(null);
     });
 }
Beispiel #2
0
        public void ConvertStringToMovementWithLowerMValueShouldReturnMovement()
        {
            var value = "m";

            var result = InstructionHelper.ConvertStringToMovement(value);

            Assert.AreEqual(Movement.Move, result);
        }
Beispiel #3
0
        public void ConvertStringToMovementWithEmptyValueShouldThrowException()
        {
            var value = string.Empty;

            Assert.ThrowsException <ArgumentException>(() =>
            {
                var result = InstructionHelper.ConvertStringToMovement(value);
            });
        }
Beispiel #4
0
        public void ConvertStringToMovementWithInvalidSingleCharacterValueShouldThrowException()
        {
            var value = "Z";

            Assert.ThrowsException <ArgumentException>(() =>
            {
                var result = InstructionHelper.ConvertStringToMovement(value);
            });
        }