// Name: testableframe.cpp
// Purpose: An improved wxFrame for unit-testing
// Author: Steven Lamerton
-// RCS-ID: $Id:$
+// RCS-ID: $Id$
// Copyright: (c) 2010 Steven Lamerton
-// Licence: wxWidgets licence
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx/wx.h".
}
}
+void wxTestableFrame::ClearEventCount(wxEventType type)
+{
+ m_count[type] = 0;
+}
+
EventCounter::EventCounter(wxWindow* win, wxEventType type) : m_type(type),
m_win(win)
NULL,
m_frame);
+ //This stops spurious counts from previous tests
+ m_frame->ClearEventCount(m_type);
+
m_frame = NULL;
m_win = NULL;
}