Oct 31, 2007
Generic-user-small prashant 1 post

Topic: Pragmatic Unit Testing in C# with NUnit / Passing parameters to nunit at runtime

Hi all,

I have written Nunit test case using C#. I am using same database located in different server for example server1 and server2.

My config file is

<configuration> <appsettings> <add value="server1" key="x" /> </appsettings>

</configuration>

when i execute the test case then it will execute with server1

Now the question is:
I want to execute the same test case with server2

How can i pass connection string of server2 to test case dynamically or run time

please help me

Reagrds
Prashant

1 post