Using the exception filtering causes the tests to fail due to InvalidProgramException, for example:
Code:
try
{
// Do something
}
catch ( AggregateException ex ) when ( ex.InnerException is HttpException ) { } // removing when-predicate gets rid of the InvalidProgramException
I tried this on two PCs, other on Win10+VS2015+NCrunch 2.23 and the other on Win7+VS2015+NCrunch 2.19. The latter works fine but the former causes the InvalidProgramException to be thrown. I tried downgrading to NCrunch 2.19 on the Win10 PC but there was no difference.
So it seems like it is some Win10-specific issue. Any ideas how to resolve it?
Thanks!