How to write unit tests for an object having multiple properties

Posted by jess on Stack Overflow See other posts from Stack Overflow or by jess
Published on 2010-04-06T06:55:30Z Indexed on 2010/04/06 7:03 UTC
Read the original article Hit count: 149

Filed under:

Hi, I have various objects in application,and each has isvalid method to test if values of all properties are set correctly(as per business rules).Now,to test that for each violation isvalid throws false,i will have to write as many tests as rules being checked in isvalid.Is there a simpler way to do this? I am using MBunit.

© Stack Overflow or respective owner

Related posts about unit-testing