App.config replacements for unit tests

后端 未结 3 1140
终归单人心
终归单人心 2021-02-02 00:38

my continuous integration server (TeamCity) is configured to run all the unit tests in our app on build. Prior to running those tests, i need to change some of the appSettings t

3条回答
  •  情书的邮戳
    2021-02-02 01:30

    I suggest that you wrap your config lookups, extract an interface and stub this when testing.

提交回复
热议问题