Create the following MSpec specification:
Code:
[Subject(typeof(Foo))]
public class fake {
Because of = () => _result = Foo.DoIt();
It should_return_true = () => _result.ShouldBeTrue();
static bool _result;
}
public static class Foo {
public static bool DoIt() {
return false;
}
}
Setup MSpec/NCrunch to run the specification.
When the specification fails open the NCrunch Tests window and right-click the assertion "should return true" and select "Show coverage for selected test only".
I would expect this to show the DoIt() method as being covered by the test (red dot), however it does not (black dot).
If you choose to show coverage for the entire specification (fake), DoIt() is properly shown as being covered.