Chcę przetestować w przypadku jakiejś metody fail nie będzie wywoływana na pozornym obiekcie, używając google mock. więc kod będzie coś jak:google mock: jak mogę "OCZEKIWAĆ", że żadna metoda nie zostanie wywołana na próbę
auto mocObj = new MockObj;
EXPECT_NO_METHOD_CALL(mocObj); //this is what I'm locking for
auto mainObj = new MainObj(mocObj , ......and other mocks); // here I simulate a fail using the other mock objects, and I want to be sure the no methods are called on the mockObj
Pytanie: dlaczego jesteś nowy w swoich obiektach? To niepotrzebne ... –