From: Paul Brannan Date: 2003-12-12T23:43:43+09:00 Subject: Re: How to unit test finalizers? On Thu, Dec 11, 2003 at 12:43:52PM +0900, Yukihiro Matsumoto wrote: > How about not relying on finalizers, i.e. separate finalizing process > into a method, then call the method explicitly in the test? You don't > have to test whether finalizers are called. That's my responsibility. While it is your responsibility to call the finalizers, it is our responsibility to make sure that there are no references to the object hanging around keeping the object from being finalized. I don't know of any good, portable way to unit test that, though. Paul