Unit testing Finalizers in C#

added by Paul Wheeler
4/2/2018 3:55:19 PM

1 Kicks, 238 Views

Finalizers are generally non-deterministic. If you leave the GC to its job, it will finalize eligible objects at some point. This doesn't work very well for us if we are needing to test that our disposable types are behaving. Let's look at a base type I provide as part of