nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #00530
Re: [Question #108758]: best practice to re-execute a test suite with another parameter common to all tests
Question #108758 on NUnit Framework changed:
https://answers.launchpad.net/nunit-3.0/+question/108758
Status: Open => Answered
Charlie Poole proposed the following answer:
This is a fine pace to ask a question and get an answer. If you need a
brodaer discussion, you can also ask questions on our nunit-discuss
mailing list on google.
What you're looking or is a parameterized test fixture. Using your
example...
[TestFixture("192.168.0.55", "8888")]
[TestFixture("192.168.0.166", "8881")]
public class TestStupidDLL {
protected String ipAddress;
protected String port;
public TestStupidDll(string ipAddress, string port)
{
this.ipAddress = ipAddress;
this.port = port;
}
// etc....
}
--
You received this question notification because you are a member of
NUnit Core Developers, which is an answer contact for NUnit Framework.