In my C# project we use custom attributes as an alternative to Xunit's [Fact] and [Theory], and we use a a custom implementation of IXunitTestCase. This causes tests with these attributes to be marked as red by NCrunch with the message:
"This test was not executed during a planned execution run. Ensure your test project is stable and does not contain issues in initialisation/teardown fixtures."The reason we use these custom implementations has to do with synchronization contexts, but that's not what's breaking NCrunch. I've made a minimal failing example that shows the tests green in Visual Studio but red in NCrunch. It changes virtually no functionality; it just wraps existing functionality in a custom class.
Code:
https://github.com/CAP-3...omAttribute.NCrunchTest
I'm using NCrunch 4.3.0.13, Visual Studio Professional 2019 version 16.4.6., C# 8.
Can anyone help me figure out whether this is fixable on my end or a bug in NCrunch? Thanks!