void test_Handshake() { // add our test handshake CPPUNIT_ASSERT( msdo->addHandshake(123456) == 123456 ); // does it exist CPPUNIT_ASSERT( msdo->handshakeExists(123456) == true ); // negative exist CPPUNIT_ASSERT( msdo->handshakeExists(111) == false ); // remove it CPPUNIT_ASSERT( msdo->removeHandshake(123456) == 123456 ); // random handshake add CPPUNIT_ASSERT( msdo->addHandshake() != 0 ); // second remove should yield a non-delete CPPUNIT_ASSERT( msdo->removeHandshake(123456) == 0 ); // a non-existing deletion CPPUNIT_ASSERT( msdo->removeHandshake(111111) == 0 ); }