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
Alas, poor spelling!

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,


     

Please log in.
Before you can vote, you need to register. Please log in or create an account.

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

[link]






       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
  
      
[annotate]
  


 

back: main index

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