最佳答案
我从单元测试开始,我有一个使用 web.config 作为连接字符串的方法。
我希望能用
[DeploymentItem("web.config")]
to get the web config file, this still leaves me with null reference exceptions (that'd be what I write my next test for).
如何使用试图测试的项目中包含的配置文件?
我正在使用 VS2008中包含的测试框架,如果这有什么不同的话。
谢谢