mardi 20 janvier 2015

Nunit TestCaseSource not working

I have a test case method that takes two parameters. And I am using TestCaseSource attribute to get my test data. But when I build the solution it it shows some junk data as parameters in the test explorer. And if i try to run the test case, it ignores the test case. Is this the right way? Please direct!


Below is my test case source



public static IEnumerable Sample
{
get
{
yield return new TestCaseData(TestData.GetTestData(new TestDataGen()), TestData.GetTestData(new TestDataGen()));
}
}

Aucun commentaire:

Enregistrer un commentaire