1.

Can I Verify Tostring()?

Answer»

No. You can STUB it, though. VERIFICATION of toString() is not implemented mainly because:

  • When debugging, IDE CALLS toString() on objects to print local VARIABLES and their content, etc. After debugging, the verification of toString() will most LIKELY fail.
  • toString() is used for logging or during string concatenation. Those invocations are usually irrelevant but they will change the outcome of verification.

No. You can stub it, though. Verification of toString() is not implemented mainly because:



Discussion

No Comment Found