Exemplo n.º 1
0
        public void ConvertLetterToMoveType_Should_ThrowException(char inputCommand)
        {
            Func <MoveType> convertFunction = () => CommandParser.ConvertLetterToMoveType(inputCommand);

            convertFunction.Should().Throw <Exception>();
        }
Exemplo n.º 2
0
        public void ConvertLetterToMoveType_ShouldConvert(char inputCommand, MoveType excepted)
        {
            MoveType output = CommandParser.ConvertLetterToMoveType(inputCommand);

            output.Should().Be(excepted);
        }