2013-03-11 66 views
1

我有一個WCF項目和單元測試項目。資源文件位於App_GlobalResources文件夾中的WCF服務項目中,其中存儲自定義消息。但我執行單元測試方法,我得到了下面的錯誤 System.IO.FileNotFoundException: Could not load file or assembly 'App_GlobalResources' or one of its dependencies. The system cannot find the file.在VS2012中的單元測試

回答

0

如果你想創建單元測試依賴於外部資源,像你的資源文件,你需要確保單元測試項目也有該文件。