Reload app.config with nunit

前端 未结 3 2173
南旧
南旧 2020-12-17 18:52

I have multiple NUnit tests, and I would like each test to use a specific app.config file. Is there a way to reset the configuration to a new config file before each test?

3条回答
  •  北海茫月
    2020-12-17 19:30

    If you issue is that you for different sets of test cases needs to have different configurations you can have different test projects with a configuration file for each. Then run your test projects one at a time.

提交回复
热议问题