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); }
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); }
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); }