Ability to call unit tester from code
Brought to you by:
malange
It would great to have something like a RunUnitTests() function that I could call from within my code that returns a list of all errors. It should run in the calling thread. It could optionally use the calling assembly, all loaded assembly, or an assembly supplied as an argument.
Perhaps this feature is already available, but just not mentioned in the documenation?
Hi,
thank you for submitting this feature request. If it already exists that would be pure coincidence. We didn't design it that way.
However, the suggestion is worth to be considered. Be aware, however, that there might be technical limitations since tests are typically executed in a separate appdomain which gets unloaded after all tests are executed. This may not be possible in the described scenario.
Kind regards,
Manfred.
---
Manfred Lange.
csUnit developer
http://www.csunit.org