Laurent Hinoul

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” - John F. Woods

How to test a private constructor

You can test a private constructor by using Reflection. Insert the following code in your unit test class:

Leave a Reply

%d bloggers like this: