I haven't seen this on their Documentations, but I am looking to do a test like this:
[TestFixture]
public class SampleModel
{
// stuff
[TestCase(new DBContext(), 502)]
public IQueryable<SomeModel> GetPrograms(DBContext dbContext, int? programId)
{
// Assert stuff
}
}
Is it possible to initialize an argument in TestCase attribute?
Aucun commentaire:
Enregistrer un commentaire