Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

consider using Actual.ToString() if ActualExpression is null #3262

AdmiralSnyder started this conversation in General
Discussion options

Hey, i know i'm trying ot avoid AAA, but i'd like to request that the Assert.That() method handles value, or rather, valueExpression, nicer (especially for Tests with [Arguments]

image

For another usecase, i wrote an overload of the method i'm actually testing, outputting a string representation of the modified parameter, but that's not particularly generalizable :-(
image

so i'd like to ideally get the behavior Assert.That (and friends) to behave this way:
image
i.e. it would output

Message: Expected a,, ,b, ,,c to be the same boxes as a,, ,b, ,,c but they are different

instead of

`
Message:
Expected Boxes.StampBoxStrings(strings) to be the same boxes as
a,,
,b,
,,c

but they are different
`
in the test explorer:
image

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /