in reply to Testing and combinations
How are you setting options? By passing parameters to a new or init method, by calling specific setters on the object, some other fashion?
In any case I'd be inclined to build a table with a list of option and value pairs for each object class. You can then use the table entries to drive generating and configuring object instances as well as validating the result. We really need to see something more of the way the API for your objects is put together though to be able to sketch some practical code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Testing and combinations
by talexb (Chancellor) on Oct 30, 2007 at 20:23 UTC | |
by GrandFather (Saint) on Oct 30, 2007 at 20:46 UTC | |
by talexb (Chancellor) on Oct 30, 2007 at 20:57 UTC |