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
0 votes
The new Visual Studio test runner of TypeMock 7.0 doesn't recognize NUnit tests using TestCases.

This is recognized and the little test runner icon is displayed next to it:
[Test]
public void CalculateFeedCostTest()
{
   // Test some stuff
}

This is not recognized and no test runner icon is displayed next to it:
[Test(), Description("Test of method AggregateBiologicalTimespan"),
TestCase(false, false, Description = "Test with values and check results."),
TestCase(true, false, Description = "Test with 2 projects and check results."),
TestCase(false, true, Description = "Test with empty economy table.")]
public void AggregateBiologicalTimespanTest(bool newProject, bool emptyEconomyTable)
{
   // Test some stuff
}

ReSharpers test runner recognizes both as tests.
asked by halstein (8.7k points)

3 Answers

0 votes
Hi halstein,

Thanks for the notice. We will have support for TestCase in near future, maybe 1 or 2 weeks.
answered by yoel (1.9k points)
0 votes
Hi,

Will you also support Value attributes for NUnit?

Example:

[Test]
void MyTest([Values("foo", "bar")] string s)
{
}
answered by krenaud (140 points)
0 votes
Hi,

Yes we have plans to do that but at the moment I don't know what is the time line for this feature.
answered by ohad (35.4k points)
...