예제 #1
0
        public void CreateDemTileCreatorTest()
        {
            MockClasses.MockElevationMap map = new MockClasses.MockElevationMap();
            ITileCreator demTileCreator      = TileCreatorFactory.CreateDemTileCreator(map, ProjectionTypes.Mercator, Environment.CurrentDirectory);

            // Validate Mercator file
            Assert.AreEqual(ProjectionTypes.Mercator, demTileCreator.ProjectionType);
        }
예제 #2
0
        public void MercatorDemTileMapTest()
        {
            MockClasses.MockElevationMap map = new MockClasses.MockElevationMap();

            IDemTileSerializer serializer = new MockClasses.MockDemTileSerializer();
            MercatorDemTileCreator tc = new MercatorDemTileCreator(map, serializer);
            Assert.AreEqual(tc.ProjectionType, ProjectionTypes.Mercator);
            tc.Create(0, 0, 0);
        }
예제 #3
0
        public void CreateDemTileCreatorWithSerializerTest()
        {
            MockClasses.MockElevationMap      map            = new MockClasses.MockElevationMap();
            MockClasses.MockDemTileSerializer mockSerializer = new MockClasses.MockDemTileSerializer();
            ITileCreator demTileCreator = TileCreatorFactory.CreateDemTileCreator(map, ProjectionTypes.Toast, mockSerializer);

            // Validate Mercator file
            Assert.AreEqual(ProjectionTypes.Toast, demTileCreator.ProjectionType);
        }
예제 #4
0
        public void MercatorDemTileMapTest()
        {
            MockClasses.MockElevationMap map = new MockClasses.MockElevationMap();

            IDemTileSerializer     serializer = new MockClasses.MockDemTileSerializer();
            MercatorDemTileCreator tc         = new MercatorDemTileCreator(map, serializer);

            Assert.AreEqual(tc.ProjectionType, ProjectionTypes.Mercator);
            tc.Create(0, 0, 0);
        }