0
kicks
Writing Tests to Catch Memory Leaks in .NET
Although Microsoft will claim that it is "not possible to have a memory leak in managed code", most seasoned .NET developers will laugh at that statement. It turns out that it is very easy to leak memory -- just keep a referencing object around longer than the referenced object, and you can leak.
Here is a way to write tests to catch leaks.