public void CharacterConverter_TryInvalidCharacter([Values('(', '*', '!', '@')] char input) { Assert.Throws <FormatException>(() => CharacterConverter.ConvertCharacterToInt(input)); }
public void CharacterConverter_TestConversion(char input, int expectedOutput) { var output = CharacterConverter.ConvertCharacterToInt(input); Assert.AreEqual(expectedOutput, output); }