testing - Accessing app.settings when running NUnit -



testing - Accessing app.settings when running NUnit -

my test fails. made me sad. started debug on , found out nullreferenceexception occurs du line below.

system.configuration.configurationmanager.getsection("blopp")

it doesn't happen when run programme beingness tested (although said phone call not straight in programme in 1 of libraries).

is bad design of code or should consider different approach testing? perhaps there's way fake-in missing config line? i'm totally indecisive...

i've had problems before using nunit gui (nunit.exe) when running tests part of nunit project app.config file not read.

try opening test library straight in nunit gui clicking file > open project... , selecting test library.

testing nunit

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -