分離したいのですwriteMemory
が、次のエラーのために分離できません:
../../Util/UnitTest++/../../UnitTests/KeeperDive_Test.h:66:57: エラー: 期待される式 mocks.ExpectCall(Skillmock, Skill::writeMemory).With(template (Skillmock));
class Skill
{
protected:
template <class T> void writeMemory(const char *key, T value)
{
PY_ERROR_TRY
{
skillMemory[key] = (T)value;
}
PY_ERROR_CATCH
}
};
TEST(run)
{
MockRepository mocks;
Skill *Skillmock = mocks.Mock<Skill>();
mocks.ExpectCall(Skillmock, Skill::writeMemory).With(template<class T>(Skillmock));
}