tpierrain / NFluent

Smooth your .NET TDD experience with NFluent! NFluent is an ergonomic assertion library which aims to fluent your .NET TDD experience (based on simple Check.That() assertion statements). NFluent aims your tests to be fluent to write (with a super-duper-happy 'dot' auto-completion experience), fluent to read (i.e. as close as possible to plain English expression), but also fluent to troubleshoot, in a less-error-prone way comparing to the classical .NET test frameworks. NFluent is also directly inspired by the awesome Java FEST Fluent assertion/reflection library (http://fest.easytesting.org/)
Apache License 2.0
310 stars 53 forks source link

Use `ToString` for error messages #336

Open dupdob opened 2 years ago

dupdob commented 2 years ago

Is your feature request related to a problem? Please describe. Despite all effort and progress of NFluent, sometimes the description of the sut is lacking in the error message. NFluent could use the sut ToString override when it exists to improve error messages.

Describe the solution you'd like NFluent should use ToString override when available, or it could revert ton this when internal NFluent logic fails to provide useful reports.

Additional context See error #355 for context