Feature Suggestions

Recognize xUnit Facts part of child classes

Started by riteshrao on 6,436 views

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.
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
This post has been deleted.

Post a reply

Log in to reply.