unittests running before static ctors??

H. S. Teoh hsteoh at quickfur.ath.cx
Thu Jan 26 10:08:24 PST 2012


I just noticed that unittests are running before static class ctors. Is
this a bug??

I suppose the intention is for unittests to make sure the class
implementation is OK before using it, but this makes it impossible to
use unittests to make sure that static ctors are setting up the initial
states correctly.


T

-- 
No! I'm not in denial!


More information about the Digitalmars-d-learn mailing list