Hi
I was wondering if there is an attribute which passes data to test method
argument without creating new test instance. I'm looking equivalent of
'for' loop. Test is repeated n times with different parameters, each loop
is not separated test case - at least one loop fails, whole test fails.
It should look like this:
[NewAttribute (1)]
[NewAttribute (2)]
[Test]
public void MyTest (int parameter){
doSomething(parameter)
}
and do something like this:
[Test]
public void MyTest (){
int [] parameters = {1,2};
for(int i=0,i<2;i++)
{
doSomething(parameter[i]);
}
}
Thanks in advance
-marcin
--
You received this message because you are subscribed to the Google Groups
"MbUnit.User" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/mbunituser/-/ver4_gjOpuIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/mbunituser?hl=en.