Skip to content

Old docs

Jon P Smith edited this page Jan 4, 2021 · 3 revisions

Version 3.2.0 documentation links

This document has links to documentation for the EfCore.TestSupport, version 3.2.0.

Notes on running unit tests

Running in NET Core

In NET Core the EfCore.TestSupport features work when running the unit tests via Visual Studio Test Explorer, or any other test runner such as Resharper.

Running in NET Framework

In NET Framework, by default, EfCore.TestSupport methods that accessing files or appsettings fails when running via Visual Studio Test Explorer (but resharper works). This is because the NET Framework XUnit runner defaults to using a shadow copy. The solution is to add a XUnit configuration file to turn off the shadow copy. I have added a project called Net472Test to test this and you can find my XUnit xunit.runner.json file here that provides the correct setup. NOTE: read the XUnit config docs as you need to set the file properties for it to work.

Clone this wiki locally