CPPUNIT_ASSERT_EQUAL( "bye", entry->GetValue() );
}
-void TextEntryTestCase::TextChangeEvents()
+namespace
{
class TextTestEventHandler : public wxEvtHandler
{
private:
int m_events;
- } handler;
+ };
+}
+
+void TextEntryTestCase::TextChangeEvents()
+{
+ TextTestEventHandler handler;
GetTestWindow()->Connect
(