I am trying to write mock method for the method which is taking LPCTSTR as a parameter.
Example: virtual LPCTSTR GetData(LPCTSTR key) const //declaration
CString str = GetData(key);
My mock method looks like this MOCK_CONST_METHOD1(GetData, LPCTSTR(LPCTSTR key));
And expected call looks like,
LPCTSTR key = _T("Testing");
GetData function call always returns empty string.
Please help me.