Ejemplo n.º 1
0
        public void RemoveMapLayerTest()
        {
            ArcGisMap_Accessor target = new ArcGisMap_Accessor();

            int layersInitialCount = target.Map.Layers.Count;

            ArcGISTiledMapServiceLayer tiledServiceLayer = new ArcGISTiledMapServiceLayer();
            tiledServiceLayer.ID = "Imagery";
            target.RemoveMapLayer(tiledServiceLayer);

            int layersFinalCount = target.Map.Layers.Count;

            Assert.AreEqual(layersInitialCount, layersFinalCount + 1);
        }
Ejemplo n.º 2
0
 public void InitializeGraphicsTest()
 {
     ArcGisMap_Accessor target = new ArcGisMap_Accessor();
     target.InitializeGraphics();
     Assert.IsTrue(target.isDrawObjectCreated());
 }
Ejemplo n.º 3
0
        public void InitializeMapLayersTest()
        {
            ArcGisMap_Accessor target = new ArcGisMap_Accessor();
            int layersCountBefore = target.Map.Layers.Count;
            target.InitializeMapLayers();
            int layersCountAfter = target.Map.Layers.Count;

            Assert.AreEqual(layersCountBefore + MapLayersManager.Instance.MapLayers.Count, layersCountAfter);
        }
Ejemplo n.º 4
0
 public void graphic_MouseLeftButtonDownTest()
 {
     ArcGisMap_Accessor target = new ArcGisMap_Accessor(); // TODO: Initialize to an appropriate value
     object sender = null; // TODO: Initialize to an appropriate value
     MouseButtonEventArgs e = null; // TODO: Initialize to an appropriate value
     target.graphic_MouseLeftButtonDown(sender, e);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }