Re: Unit tests and parameter validation
Avi Kessner <[email protected]>
| Newsgroups | gmane.comp.programming.test-driven-development |
|---|---|
| Message-ID | <CAGEhWpEXPx=Jgap_MrPmpUcQQACkPVSLsb+jmp+dKJhKUP++wg@mail.gmail.com> |
It depends on the language, but in general, I think it should be tested. brought to you by the letters A, V, and I and the number 47 On Tue, Oct 15, 2013 at 7:03 PM, Eb <[email protected]> wrote: > ** > > > 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 > > >