-
Notifications
You must be signed in to change notification settings - Fork 731
Limit formatting to a maximum number of lines #1469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
853b05d to
0f80f4f
Compare
5274aa1 to
21f13d6
Compare
735cafa to
7ab46cf
Compare
4941255 to
d474a26
Compare
523a423 to
f9cf9cc
Compare
788a6e0 to
d8f7aca
Compare
…LineBreaks option fixup! Formatter.ToString() now takes a FormattingOptions that wraps the UseLineBreaks option
Those options can be used to tweak the MaxDepth and the UseLineBreaks that the formatter uses to render the object graph in case an assertion fails.
a97c3d3 to
46f2f9b
Compare
jnyrup
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As requested, here's your additional "shitload of comments"
Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt
Outdated
Show resolved
Hide resolved
Tests/Approval.Tests/ApprovedApi/FluentAssertions/net47.verified.txt
Outdated
Show resolved
Hide resolved
jnyrup
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
I can't wait to see some failing unit tests
d92d631 to
d38f25a
Compare
|
Just noticed that the docs also needs an update. https://fluentassertions.com/extensibility/#rendering-objects-with-beauty |
Damnit. I already did the work to update the extensibility guide and add a section to the tips for migrating to v6. I must have force pushed something away. |
Both will have defaults
Fixes #1014
Can be reviewed commit by commit