+void SpinCtrlTestCase::NoEventsInCtor()
+{
+ // Verify that creating the control does not generate any events. This is
+ // unexpected and shouldn't happen.
+ wxWindow* const parent = m_spin->GetParent();
+ delete m_spin;
+ m_spin = new wxSpinCtrl;
+
+ EventCounter updated(m_spin, wxEVT_SPINCTRL);
+
+ m_spin->Create(parent, wxID_ANY, "",
+ wxDefaultPosition, wxDefaultSize, 0,
+ 0, 100, 17);
+
+ CPPUNIT_ASSERT_EQUAL(0, updated.GetCount());
+}
+