visual studio - xUnit showing truncated Expected and Actual in Test Explorer -
i using xunit visual studio test explorer , when there's error in assert.equal()
, getting truncated version of actual , expected.
for example,
xunit.sdk.equalexception assert.equal() failure expected: list<result> [result { status = statusenumvalue1, message = "the request or response type contains special ty"..., path = "1234" }] actual: wherelistiterator<result> [result { status = statusenumvalue1, message = "the request or response type contains special ty"..., path = "1234" }]
this test fails because message
s different, given message
s truncated, cannot see part different test explorer. when copy out, it's still truncated.
is known shortcoming of xunit? can keep debugging test or use writeline
compare message
s surprised xunit framework not have way allow full response shown. tried resharper test explorer, , not solve problem.
this appears limitation of visual studio. looks resolved visual studio 2017.3.
Comments
Post a Comment