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

Notification

Icon
Error

Linebreak for better readability
forki
#1 Posted : Wednesday, May 25, 2011 1:02:36 PM(UTC)
Rank: Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 19
Location: Hamburg

Thanks: 1 times
Hi,

consider the following code:

Code:
    public class when_showing_error
    {
        It should_be_aligned = () => 1.ShouldEqual(2);
    }


The report looks a bit strange, since it is not aligned:

Machine.Specifications.SpecificationException: Expected: [2]
But was: [1]
at Machine.Specifications.ShouldExtensionMethods.ShouldEqual[T](T actual, T expected)
...

It would be cool there would be a linebreak after the exception type, like:

Machine.Specifications.SpecificationException:
Expected: [2]
But was: [1]
at Machine.Specifications.ShouldExtensionMethods.ShouldEqual[T](T actual, T expected)
....

Or is this an issue in MSpec?


Cheers,
Steffen
Remco
#2 Posted : Wednesday, May 25, 2011 6:32:39 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 795 times
Was thanked: 1050 time(s) in 1000 post(s)
This is actually the output directly from the test runner, so I'm afraid there's not much I can do here :(
forki
#3 Posted : Wednesday, May 25, 2011 6:40:05 PM(UTC)
Rank: Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 19
Location: Hamburg

Thanks: 1 times
That's ok,

I will send a pull-request to mspec.

Thanks.
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.026 seconds.