I would like to write the unit test for a text parser class but I am not sure about the Bad Inputs I need to give to the test method in order to be sure it work in all possible cases.
The method uses some regular expression plus string manipulation, but if I understood well the Unit Testing approach I don't have to concentrate on the method implementation but see it as a black box. Right?
The method is
Public Function GetSymbol(ByVal symbol As String) As SymbolInfo
if the symbol specified is found it return an instance of SymbolInfo will all needed data, otherwise it return Nothing.
My problem now is creating the range of bad inputs for this method, but they are so many that I have no idea how to do it in an effective way.
Can you give me some hints? I am newbie about unit testing, just started.