Hello!
There is a class with few fields: List(types::record), PurchId, Amount, Status. I want to override tostring() method so that it returns current state of the class object, for example:
while(listEnumerator.movenext())
{
recIdStr = listEnumerator.current().RecId;
}
return strfmt("%1; %2; %3; %4", PurchId, Amount, Status, recIdStr);
I'm gonna use this method in my unit test cases:
this.assertEquals("expected state", myClass.toString());
Tell me please, what are the troubles that may be committed by this solution?