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

Notification

Icon
Error

NUnit Assert.Ignore causes failed test
southward
#1 Posted : Sunday, February 5, 2012 4:46:07 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/5/2012(UTC)
Posts: 1

The NUnit command
Assert.Ignore("This Test hits database");
causes NCrunch to falsely indicate a Failed test.

To duplicate, add the following test.


[Test]
public void AssertIgnoreFalseFailure()
{
Assert.Ignore("This Test hits database");
}
Remco
#2 Posted : Sunday, February 5, 2012 9:25:45 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,140

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for posting.

The reason for this is that NCrunch doesn't make use of an 'Inclusive' status to define tests that make use of Ignore. There's some more information about plans here in this thread: http://forum.ncrunch.net/yaf_postst11_Problem-with-NUnit-TestCase-attribute.aspx


Cheers,

Remco
Users browsing this topic
Guest (2)
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.022 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download