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); }
public void InitializeGraphicsTest() { ArcGisMap_Accessor target = new ArcGisMap_Accessor(); target.InitializeGraphics(); Assert.IsTrue(target.isDrawObjectCreated()); }
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); }
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."); }