#include <HYDROData_Document.h>
#include <HYDROData_LandCoverMap.h>
#include <HYDROData_PolylineXY.h>
+#include <HYDROData_Tool.h>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Wire.hxx>
#include <TopoDS_Face.hxx>
TestViewer::show( aMap->GetShape(), AIS_Shaded, true );
TestViewer::AssertEqual( "LandCoverMap_Add_2_Objects" );
- //TODO: check the types
+ HYDROData_LandCoverMap::Iterator anIt( aMap );
+ CPPUNIT_ASSERT_EQUAL( true, anIt.More() );
+ CPPUNIT_ASSERT_EQUAL( QString( "test1" ), anIt.StricklerType() );
+ anIt.Next();
+ CPPUNIT_ASSERT_EQUAL( true, anIt.More() );
+ CPPUNIT_ASSERT_EQUAL( QString( "test2" ), anIt.StricklerType() );
+ anIt.Next();
+ CPPUNIT_ASSERT_EQUAL( false, anIt.More() );
aDoc->Close();
}
//TestViewer::show( aWire, QColor(), 0 );
TestViewer::AssertEqual( "LandCoverMap_Split_1" );
- //TODO: check the types
+ HYDROData_LandCoverMap::Iterator anIt( aMap );
+ CPPUNIT_ASSERT_EQUAL( true, anIt.More() );
+ CPPUNIT_ASSERT_EQUAL( QString( "test1" ), anIt.StricklerType() );
+ anIt.Next();
+ CPPUNIT_ASSERT_EQUAL( true, anIt.More() );
+ CPPUNIT_ASSERT_EQUAL( QString( "test1" ), anIt.StricklerType() );
+ anIt.Next();
+ CPPUNIT_ASSERT_EQUAL( false, anIt.More() );
aDoc->Close();
}