CPPUNIT_ASSERT_EQUAL (importedEntities.Size(), 60);
}
+void test_HYDROData_PolylineXY::test_polyline_dbf_info_simple()
+{
+ Handle(HYDROData_Document) aDoc = HYDROData_Document::Document( 1 );
+ Handle(HYDROData_PolylineXY) aPolyline = Handle(HYDROData_PolylineXY)::DownCast(aDoc->CreateObject(KIND_POLYLINEXY));
+ QStringList dbf_dummy, dbf_out;
+ dbf_dummy << "n1" << "n2" << "n3" << "n4";
+ aPolyline->SetDBFInfo(dbf_dummy);
+ CPPUNIT_ASSERT (aPolyline->GetDBFInfo(dbf_out));
+ CPPUNIT_ASSERT_EQUAL (dbf_out.size(), 4);
+ CPPUNIT_ASSERT ("n1" == dbf_out[0]);
+ CPPUNIT_ASSERT ("n2" == dbf_out[1]);
+ CPPUNIT_ASSERT ("n3" == dbf_out[2]);
+ CPPUNIT_ASSERT ("n4" == dbf_out[3]);
+}
+
+
CPPUNIT_TEST( test_import_from_xyz );
CPPUNIT_TEST( test_import_from_sx );
CPPUNIT_TEST( test_import_from_sx_options );
+ CPPUNIT_TEST( test_polyline_dbf_info_simple );
CPPUNIT_TEST_SUITE_END();
private:
void test_import_from_xyz();
void test_import_from_sx();
void test_import_from_sx_options();
+ void test_polyline_dbf_info_simple();
};