chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
Currently it is possible to specify Isolated attribute on method and class level. If attribute is specified on class level (together with TestFixture if using NUnit), then it is applied to individual tests.

NUnit 2.5 supports new attribute: TestCase. This can be used for row testing, to run parameterized tests.

But when a test method does not have Test attribute - only TestCase - it does not get Isolated behavior.

This does not work:

[TestFixture, Isolated]
public class MyClass
{
[TestCase(...)]
[TestCase(...)]
public void TestMethod(...)
{
}
}

But this works:

[TestFixture, Isolated]
public class MyClass
{
[Test]
[TestCase(...)]
[TestCase(...)]
public void TestMethod(...)
{
}
}

Since NUnit does not require Test attirbute to be used with test cases, I believe Isolator should do the same and make using TestCase attribute alone sufficient.
asked by (19.4k points)

1 Answer

0 votes
I will fix this issue and send you a patch later today
answered by (11.9k points)
...