views:

25

answers:

1

Hey all..

I am using MS Test to test one of my controller's actions. This method uses the ConfigurationManger to read appSettigns from the web.config. For some reason ConfigurationMangager is not able to find the appsettings. In NUNIT I would just make sure to add a copy of the webconfig file to the test project so that it is available when running in that context. However this is not working for me.

Can someone tell me what I need to do to make sure my web.config is where it needs to be when using MS test?

+3  A: 

Try using app.config instead of web.config

Anthony