I am trying to use TDD for my coding practice. I would like to ask should I test with a data that should not happen in a function BUT this data may possibly break your progr
You said your method will raise an exception if the argument is not valid.
So, yes you should, because you should test that the exception gets raised.