O'Reilly logo
  • Feilim Deffely thinks this is interesting:

And the implementation is simple, too:


Cover of Test Driven Development: By Example


what about eliminating duplication ? we have a duplication of a hardcoded/'magic string' now that we are expecting, including whitespace, and w are aggregating magic strings int he expectation - this seems quite brittle to me - should we expect a load of tests to break if i change the string in a log statement really ?