Is it possible to write unit tests for Qt application for example QCoreApplication to test it's functions that are invoked in arbitrary time? Let's suppose that I want to test member function of my class like
void deleteConnectionFromList(QTcpSocket*);
This function should be called after other functions like addNewSocket()
But where should I put BOOST_CHECK_EQUAL() statement?
BOOST_AUTO_TEST_CASE( test )
{
int argc{};
QCoreApplication app(argc, nullptr);
Server server;
app.exec();
}