+void ComboBoxTestCase::IsEmpty()
+{
+ CPPUNIT_ASSERT( m_combo->IsListEmpty() );
+ CPPUNIT_ASSERT( m_combo->IsTextEmpty() );
+
+ m_combo->Append("foo");
+ CPPUNIT_ASSERT( !m_combo->IsListEmpty() );
+ CPPUNIT_ASSERT( m_combo->IsTextEmpty() );
+
+ m_combo->SetValue("bar");
+ CPPUNIT_ASSERT( !m_combo->IsListEmpty() );
+ CPPUNIT_ASSERT( !m_combo->IsTextEmpty() );
+
+ m_combo->Clear();
+ CPPUNIT_ASSERT( m_combo->IsListEmpty() );
+ CPPUNIT_ASSERT( m_combo->IsTextEmpty() );
+
+#ifdef TEST_INVALID_COMBOBOX_ISEMPTY
+ // Compiling this should fail, see failtest target definition in test.bkl.
+ m_combo->IsEmpty();
+#endif
+}
+