I'm trying to uint test the methods of a class which derives from a base class in another assembly. The base class uses Entity with SQL CE.
Normally the System.Data.SqlServerCe.dll and System.Data.SqlServerCe.Entity.dll are in the common build target directory, along with the base class assembly's dll. They don't get copied to the TestResults/<test>/Out directory. (The test assemblies
do NOT target the comon build target directory; they use "bin/Release" or "bin/Debug".)
The base class assembly dll DOES get copied to the Out directory, along with other project dll's it depends on. These also have been copied to the bin/Debug (bin/Release) for the unit test project, but the SqlServerCe dll's are not there, either.
I tried using [DeploymentItem("System.Data.SqlServerCe.dll")] to copy them to the Out directory, but with no luck.
Adding the files to the Deployment list in the Test Settings, DOES copy them to Out. However, the unit test still fails in the same way... An exception is being thrown when the main entity class (derived from ObjectContext) is constructed with the connectionString.
The exception message is:
The specified store provider cannot be found in the configuration, or is not vali
View Complete Post