I have recently converted a project from .Net Framework 4.8 to .Net Core 3.1. The tested classes are using BitmapSource from WPF.
When I try to run these tests, I'm getting the following exception:
System.IO.FileNotFoundException : Could not load file or assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
It seems like NCrunch doesn't resolve the WPF dependency somehow.
We're investigating this. I recommend trying the 'Copy referenced assemblies to workspace' setting (as suggested above), or rolling back to v4.1 to see if that fixes it.
I recommend following the above thread for updates on the issue. Sadly, it's a tough one that might take us a while to crack. If you have the option, I recommend keeping your setup on an older toolset a little longer so you can still use NCrunch until we can fix the problem.
Would you mind testing the build below? I expect that it should work for your error too, if it doesn't not work could you please provide us with a small sample solution that reproduces the issue?