【问题标题】:Accessing Custom Configurations in NUnit class在 NUnit 类中访问自定义配置
【发布时间】:2010-12-29 09:11:32
【问题描述】:

我真的很喜欢这个。我无法使自定义配置与 NUnit 一起使用。它一直无法读取配置文件。我目前正在做一个日志类。

我仔细看了这篇文章:http://devlicio.us/blogs/derik_whittaker/archive/2006/11/13/app-config-and-custom-configuration-sections.aspx

将引用放在单元测试类 App.Config 中,仍然一切都失败了。

这里有什么神奇的设置吗?

【问题讨论】:

    标签: c# app-config custom-configuration


    【解决方案1】:

    您需要在正确的配置文件中定义自定义配置,请参阅以下参考:

    http://blog.coryfoy.com/2005/08/nunit-app-config-files-its-all-about-the-nunit-file/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-11-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-25
      • 2014-07-16
      相关资源
      最近更新 更多