1、如果你在你的代码中使用了 ConfigurationSettings.GetConfig 获取app.config里面的设置的话,在单元测试中,你必须把.config文件拷贝到单元测试程序集所在dll里并且命名为 <test assembly's name>.dll.config,否则单元测试时将无法读取配置文件里面的信息。

相关文章:

  • 2022-01-21
  • 2022-02-24
  • 2021-08-11
  • 2021-09-10
  • 2021-08-14
  • 2022-02-21
  • 2022-01-11
  • 2022-02-06
猜你喜欢
  • 2021-06-01
  • 2021-09-05
  • 2021-06-23
  • 2021-06-22
  • 2022-02-22
相关资源
相似解决方案