Mock模拟异常
EXPECT_CALL(*(painter.getTurtle()), PenDown()) .Times(AtLeast(1)) .WillOnce(MyException()) .WillRepeatedly(Return(5));
Mock模拟异常
EXPECT_CALL(*(painter.getTurtle()), PenDown()) .Times(AtLeast(1)) .WillOnce(MyException()) .WillRepeatedly(Return(5));