Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Do not strip messages on new line
jgauffin
#1 Posted : Monday, December 16, 2013 10:49:34 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/6/2013(UTC)
Posts: 6
Location: Sweden

Thanks: 1 times
I got the following test:

Code:
[Fact]
public void parameter_with_space_cannot_be_a_parameter_revert_it_to_text()
{
    var sut = new StringFormatter();

    var result = sut.Format("Hello {{{name}}}! {stupid } strange}", new { name = "Jonas" });

    result.Should().Be("Hello {Jonas}! {stupid } strange}");
}


It runs OK in the Resharper test runner and produces a correct error:

Quote:
Xunit.Sdk.AssertException
Expected string to be
"Hello {{Jonas}}! {{stupid }} strange}}" with a length of 33, but
"Hello {{Jonas}}! {{stupid strange}}" has a length of 32.


However, if I hover over the NCrunch red "X" I get the following:



And when I click on the X:



If I click on the link in the above screenshot I get the complete message:




Can you at least show the first couple of lines when hovering or clicking on the X?
Remco
#2 Posted : Monday, December 16, 2013 11:03:42 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi, thanks for sharing this issue!

It looks like the CR/LF in the exception message is causing some problems in the UI. I'll see if I can get this fixed, I'm fairly certain it will be easy to reproduce.


Thanks again,

Remco
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.027 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download