Link to home
Start Free TrialLog in
Avatar of Ron Renninger
Ron Renninger

asked on

Testing c# libary class

is there an easy way to test a c# libary class. I have it linked to another c# program but need a way to check the class. Using visual studio 2015
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Where as unit testing is great to verify that you're code works well, i think what you're looking for is more of an exploratory testing, which makes me think that it's actually reflection that's gonna help you solve your problem.

MSDN Reflection

"The classes in the System.Reflection namespace, together with System.Type, enable you to obtain information about loaded assemblies and the types defined within them, such as classes, interfaces, and value types." -msdn


Here's a youtube series on it by Jamie King; a stellar guy to share his know how for free
https://www.youtube.com/watch?v=VJX1G15GTng&list=PLRwVmtr-pp05brRDYXh-OTAIi-9kYcw3r

Hope that helps. just want to emphasize that when developing a class unit tests are great, even when maintaining legacy software unit tests are amazing and will force you to refactor your code using best practices, a worth while investment.