My web application project works just fine, but I'm trying to start unit testing with NUnit. I have the Test and TestFixture properly set-up, but when I actually run a test against the project's DLL in my bin, the test case fails with the message that it cannot load the App_GlobalAssemblies. (The Trace tab says that App_GlobalResources is not a strong name.)
App_GlobalResources is a regular folder for Web Application Projects. It contains my Constants.resx file. The expression in my code that triggers the failure is: Resources.Constants.KeyValueName (where KeyValueName is the name of one of the key-value pairs in my resx file).
NUnit correctly makes its way to Constants.designer.cs, to try to call Assembly.Load(). Here's the rest of the stack trace. (The top line is ultimately where the failure happens.)
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
Any ideas on integrating NUnit for a project that uses App_GlobalResources? I *really* want to be able to perform unit testing.