diff --git a/tests/controls/treectrltest.cpp b/tests/controls/treectrltest.cpp index 433c32ce61..3d03a768eb 100644 --- a/tests/controls/treectrltest.cpp +++ b/tests/controls/treectrltest.cpp @@ -70,6 +70,7 @@ private: CPPUNIT_TEST( SelectItemMulti ); CPPUNIT_TEST( PseudoTest_SetHiddenRoot ); CPPUNIT_TEST( HasChildren ); + CPPUNIT_TEST( GetCount ); CPPUNIT_TEST_SUITE_END(); void ItemClick(); @@ -94,6 +95,7 @@ private: void Sort(); void KeyNavigation(); void HasChildren(); + void GetCount(); void SelectItemSingle(); void SelectItemMulti(); void PseudoTest_MultiSelect() { ms_multiSelect = true; } @@ -175,6 +177,11 @@ void TreeCtrlTestCase::HasChildren() CPPUNIT_ASSERT( !m_tree->HasChildren(m_grandchild) ); } +void TreeCtrlTestCase::GetCount() +{ + CPPUNIT_ASSERT_EQUAL(3, m_tree->GetCount()); +} + void TreeCtrlTestCase::SelectItemSingle() { // this test should be only ran in single-selection control