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

Notification

Icon
Error

Recognize xUnit Facts part of child classes
riteshrao
#1 Posted : Wednesday, May 23, 2012 8:26:46 PM(UTC)
Rank: Newbie

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

When defining our tests we usually structure our facts as child classes of an overall scenario class like so:

public class MyClassTest
{
public class When_doing_something
{
[Fact]
public void Test_condition()
{
//Assertions
}
}
}

Right now NCrunch doesn't recogize Facts contained in private classes.
Remco
#2 Posted : Wednesday, May 23, 2012 10:26:22 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 932 times
Was thanked: 1259 time(s) in 1172 post(s)
Thanks for posting!

Right now the Gallio adapter NCrunch is using for Xunit tests has a known issue where nested tests will not be found when using static analysis. You can work around this by changing your 'Framework utilisation type for Gallio' to 'DynamicAnalysis' under your NCrunch solution settings.


Cheers,

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.029 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download