Using GMock, how can I verify that a class's destructor is called? Is there a way, other than to wrap it in another class?
The obvious method, EXPECT_CALL(object, ~classtype())
yields a compiler error (gmock cannot produce a mock method called gmock_~classtype
).