Half a croissant, on a plate, with a sign in front of it saying '50c'
h a l f b a k e r y
Extruded? Are you sure?

idea: add, search, annotate, link, view, overview, recent, by name, random

meta: news, help, about, links, report a problem

account: browse anonymously, or get an account and write.

user:
pass:
register,


     

priv to pub unit testing attribute

Turns a private method or property into public when compiled for unit testing
  (-2)
(-2)
  [vote for,
against]

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


Please log in.
If you're not logged in, you can see what this page looks like, but you will not be able to add anything.



Annotation:







       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
  


 

back: main index

business  computer  culture  fashion  food  halfbakery  home  other  product  public  science  sport  vehicle