Does Google Mock count calls to mocked functions in destructor?
Does Google Mock count calls to mocked functions that occur in the开发者_如何学JAVA destructor of the object under test?
Yes!
I tested this and indeed calls to mocked functions within the destructor do count, i.e. you should EXPECT_CALL() them...
精彩评论