|
I'm trying to use TestConductor to unit test a class at the white-box level. For example, I have a Monitor class, and it has an attribute called "useCount" and it is Protected (by default). I also made the accessor and mutator protected because I don't want it to be accessed at all outside of the class.
I have two functions called "decrementUseCount" and "incrementUseCount" and I want to test them. For example, I want to assert that when I call decrementUseCount() ... that the useCount attribute is one less than before the call.
My question is this... does TestConductor have a way of peeking inside of a class, so that in my example, I could see the value of useCount? Maybe through its animation features?
I want to avoid embedding instrumentation or test code, because it is flight software and I'm not allowed to have non-flight code in there (e.g. code for the express purpose of testing).
Thanks,
Walter
Please let me know if I need to clarify anything.
|