As I mentioned before I'm trying to get the GitHub for Visual Studio extension working with NCrunch, but I've hit another problem.
In ours tests we use STATestCase (from
here):
https://github.com/githu...ts/XUnit/STATestCase.cs
I'm getting the following error from NCrunch:
Quote:An error occurred while analysing this project after it was built: System.Exception: Exception during discovery:
System.InvalidCastException: Unable to cast object of type 'STATestCase' to type 'Xunit.Sdk.XunitTestCase'.
at nCrunch.Module.XUnit2.Integration.XUnitDiscoveryMessageSink.OnMessage(IMessageSinkMessage message)
at nCrunch.Module.XUnit2.Integration.XUnitMessageSinkAdapter.OnMessage(IMessageSinkMessage message)
at Xunit.Sdk.SynchronousMessageBus.QueueMessage(IMessageSinkMessage message)
at Xunit.Sdk.XunitTestFrameworkDiscoverer.FindTestsForMethod(ITestMethod testMethod, Boolean includeSourceInformation, IMessageBus messageBus, ITestFrameworkDiscoveryOptions discoveryOptions)
at
As you can see from the code, STATestCase implements IXunitTestCase but does not derive from XunitTestCase. Could NCrunch use the IXunitTestCase interface instead?