Is there a way of checking if an object was collected by the Garbage Collector in .NET?
I'm trying to write an API that'll hook onto some events of objects that are passed in, and I need to make sure I don't use strong references to the object. I know how to do this, but I'd also like to write a unit test to verify this, and that I don't know how to do.