コード例 #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);
        }