public void GivenMapLineDataLayer_WhenUpdatedAfterMapLineDataFeaturesChanged_MapLineDataLayerFeaturesChanged() { // Given var mapLineData = new MapLineData("Test name") { Features = new[] { CreateTestMapFeature() } }; var mapLineDataLayer = new MapLineDataLayer(mapLineData); IFeature[] drawnFeatures = mapLineDataLayer.DataSet.Features.ToArray(); // When mapLineData.Features = new[] { CreateTestMapFeature() }; mapLineDataLayer.Update(); // Then CollectionAssert.AreNotEqual(drawnFeatures, mapLineDataLayer.DataSet.Features); }
public void Update_MapLineDataWithTestProperties_MapLineDataLayerUpdatedAccordingly() { // Setup var mapLineData = new MapLineData("Test name", new LineStyle { Color = Color.AliceBlue, Width = 2, DashStyle = LineDashStyle.DashDot }); var mapLineDataLayer = new MapLineDataLayer(mapLineData); SetMapLineDataTestProperties(mapLineData); // Precondition AssertMapLineDataLayerDefaultProperties(mapLineDataLayer); // Call mapLineDataLayer.Update(); // Assert AssertMapLineDataLayerTestProperties(mapLineDataLayer); }