- wxGridCellCoordsArray topleft = m_grid->GetSelectionBlockTopLeft();
- wxGridCellCoordsArray bottomright = m_grid->GetSelectionBlockBottomRight();
-
- CPPUNIT_ASSERT_EQUAL(1, topleft.Count());
- CPPUNIT_ASSERT_EQUAL(1, bottomright.Count());
-
- CPPUNIT_ASSERT_EQUAL(0, topleft.Item(0).GetCol());
- CPPUNIT_ASSERT_EQUAL(3, topleft.Item(0).GetRow());
- CPPUNIT_ASSERT_EQUAL(1, bottomright.Item(0).GetCol());
- CPPUNIT_ASSERT_EQUAL(3, bottomright.Item(0).GetRow());
+ wxArrayInt selectedRows = m_grid->GetSelectedRows();
+ CPPUNIT_ASSERT_EQUAL(1, selectedRows.Count());
+ CPPUNIT_ASSERT_EQUAL(3, selectedRows[0]);