Hi,
I stumbled across a very odd looking quirk of the combination between Ncrunch / XUnit / FluentAssertions. If I create a new XUnit testing library with a this single test class, then NCrunch does not find the test, even though Resharper does:
public class FluentAssertionsTestClass
{
[Theory, InlineData(1)]
public void FluentAssertionsTheory(int param)
{
true.Should().Be(true);
}
}
However, if I add the following class anywhere in the same library, then *both* test classes are spotted by NCrunch:
public class RegularAssertionsTestClass
{
[Theory, InlineData(1)]
public void RegularAssertionsTheory(int param)
{
Assert.True(true);
}
}
However, everything works as I expected when using [Fact] instead of [Theory].
Is this a bug in NCrunch or in XUnit?
Edited 28 Jan 2016 08:56 UTC