The task is this: there are certain string representations of the spec. numbers. It is necessary to make a class with methods bool IsCorrect (string number) SomeObject Parse (string number) string Extract (string someString) bool Contains (string someString)
The class is auxiliary, and is located inside the assembly.
The question is what should the methods do in case of an incorrect argument? For example, if the IsCorrect method accepts null, should it check the input parameter for null or is it implied that class users should take care of this themselves? class internal? Or else such a situation, Parse / Extract methods accepted an incorrect parameter (the number does not match the format), which the method should then do, check the input parameter for correctness, and throw the special. Is there an exception if the number is incorrect or the class user must check the transmitted number for correctness in advance?