mercredi 6 mai 2015

How to write Theory when method accepts object as an input parameter?

I am trying to write Theory (clubbing multiple Facts) for method which accepts object as an input parameter.

I can't use following type of implementation in ClassData as I am using same class in both service and tests and I dont want to create class for providing test input.

class TestSource : IEnumerable<object[]>

Please let me know how can I achieve this?

Aucun commentaire:

Enregistrer un commentaire