How do I test a private function with FlexUnit4
Hi,
How do I (If it's possible) test a private function of a class i want to test.
I really don't want to change the function to public only for testing it.
Any suggestions
Hi,
How do I (If it's possible) test a private function of a class i want to test.
I really don't want to change the function to public only for testing it.
Any suggestions
will this work, yes.
is it the best way, probably. that or you could /ake extensions of your classes with public methods that call the protected ones and test those. however, there isnt much more we can give you on this. testing private member functions is not the goal in my mind so i dont have a lot of additional thoughts on doing it.
mike
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.