I have a scenario where a call SendFeedback()
sends a message and returns successfully. The message is received by another thread which throws. EXPECT_THROW
doesn't work because SendFeedback()
does not throw itself. Is there a way to expect this kind of exceptions?
pseudo-code:
auto listener = Listener();
auto sender = Sender();
...
sender.SendFeedback();
// listener throws due to unexpected feedback. This exception is to be expected
Aucun commentaire:
Enregistrer un commentaire