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

            var result = InstructionHelper.ConvertStringToMovement(value);

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

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

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