How to unit test an EPiServer site?
I'm currently trying to unit test some classes in my EPiServer site. All I'm getting when running a test against a method that requires database access (ie ALL OF THEM) the testing framework, be it Microsoft's own or NUnit, it just tries to find a web.config in the /bin/Debug of the unit test project. Like this:
System.IO.FileNotFoundException: Could not find file 'C:\[PathToUnitTestProject]\bin\Debugweb.config'.
Does anyone know why this happens? Non DB-accessing methods work fine, and I have no problems unit testing other web apps on my computer, but the EPiServer ones are sure tricky.
18 January 2008