Unit tests and parameter validation

Eb <[email protected]>
Newsgroups gmane.comp.programming.test-driven-development
Message-ID <CANEY99b0uL544K=pRYL9R85JaMPEweMAx3UQeFkP3QKdt=ELHw@mail.gmail.com>
Hello everyone -

I'm curious to know thoughts on writing tests that specify the behavior of
a method when its inputs are incorrect.  Is this a common practice.  How
about parameter validation in this case?  Having some healthy debate on it
and wanted to get other insight.

The context for this in a class/methods that are used within an internal
application - this is not an API that will be publicly exposed to external
consumers.

Thanks.

-- 
blog: http://eikonne.wordpress.com
twitter: @eikonne
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.