Пример #1
0
static void CheckMenuItemRef(Menu mn, const char* ref_name)
{
    BOOST_CHECK_EQUAL( (int)mn->List().size(), 1 );
    MenuItem itm = mn->List()[0];
    BOOST_CHECK( itm->Ref() );
    BOOST_CHECK_EQUAL( itm->Ref()->mdName, ref_name );
}
Пример #2
0
void CheckOneItem(Menu mn, const char* name, const Rect& plc)
{
    BOOST_CHECK( (int)mn->List().size() == 1 );
    MenuItem mi = mn->List()[0];
    BOOST_CHECK_EQUAL( mi->mdName, name );
    BOOST_CHECK_MESSAGE( mi->Placement() == plc, "for Menu: " << mn->mdName );
}