Re:The most copied StackOverflow snippet of all time is flawed
by LorenPechtel on Wednesday December 04, 2019 @04:38PM
(#21707385)
What I would really like is for unit tests to become full fledged features of a language. Any object can contain a Test method (which would be static), this method contains all the unit test code for that object. Select "Run tests" from your compiler, it compiles everything and goes through calling any Test methods it found but the main entry point is never called. A release compile doesn't link the Test methods, nor any method marked [Test] (support functions only needed for testing.)
[ Parent
| on HN ]
There are no comments on this comment yet.