CheckResult() method of the test event handler doesn't need to return
anything, it uses CPPUNIT_ASSERTs and related macros inside it to check that
everything is expected.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67690
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
break;
case 2:
// actual test
break;
case 2:
// actual test
- CPPUNIT_ASSERT(CheckResult());
- virtual bool CheckResult()
+ virtual void CheckResult()
{
CPPUNIT_ASSERT_MESSAGE( "No events received", !m_events.empty() );
{
CPPUNIT_ASSERT_MESSAGE( "No events received", !m_events.empty() );
CPPUNIT_ASSERT_EQUAL(expected.GetPath(), e->GetPath());
CPPUNIT_ASSERT_EQUAL(expected.GetNewPath(), e->GetNewPath());
CPPUNIT_ASSERT_EQUAL(expected.GetPath(), e->GetPath());
CPPUNIT_ASSERT_EQUAL(expected.GetNewPath(), e->GetNewPath());
}
virtual void GenerateEvent() = 0;
}
virtual void GenerateEvent() = 0;