Many test methods in a single xRM Unit Test class

Apr 13, 2015 at 7:53 PM
Is there any way to have more then one testing method in a single unit test class inherited from your framework base class (either integration or unit test)?

If for instance I have many different scenarios for one plugin I need to create many separate file classes to cover all of them.
Apr 28, 2015 at 5:54 PM
I was able to do this by writing multiple test methods in the class and then moving my Asserts into the Test methods instead of the Verify method.
Jul 13, 2015 at 7:12 AM
derekfinlinson wrote:
I was able to do this by writing multiple test methods in the class and then moving my Asserts into the Test methods instead of the Verify method.
This works fine for plugins (it's exactly what I did) but have you managed to do the same for workflows? I haven't been able to figure how to do it.

Thanks
Developer
Sep 6, 2015 at 7:12 PM
Hi guys, I would recommend to use Data-Driven Unit Tests, have a look at this article:

https://msdn.microsoft.com/en-US/library/ms404708(v=vs.80).aspx

Ramon