Please log in.
Before you can vote, you need to register. Please log in or create an account.
Computer: Programming
priv to pub unit testing attribute   (-2)  [vote for, against]
Turns a private method or property into public when compiled for unit testing

The compiler knows nothing of this at programming time, so you get all the permissions correct under OO, but when you wish to unit test, you build and get access to each and every method.
-- pashute, Dec 31 2008

leave this set and you screw up your whole program in the most bizarre and dificult ways...
-- Voice, Dec 31 2008


im not aware of a way to run unit tests which are external projects on private methods. The flag is ser only by that unit testing proj with its own attrib so no build problems should occur.
-- pashute, Jan 06 2009



random, halfbakery