public void CreateInstance_WithValidArguments_NewPropertiesWithMapLineDataAsData() { // Setup var mapData = new MapLineData("Test"); var context = new MapLineDataContext(mapData, new MapDataCollectionContext(new MapDataCollection("test"), null)); // Call IObjectProperties objectProperties = info.CreateInstance(context); // Assert Assert.IsInstanceOf <MapLineDataProperties>(objectProperties); Assert.AreSame(mapData, objectProperties.Data); }
public void Constructor_ExpectedValues() { // Setup var data = new MapLineData("test"); var parent = new MapDataCollectionContext(new MapDataCollection("parent"), null); // Call var context = new MapLineDataContext(data, parent); // Assert Assert.IsInstanceOf <FeatureBasedMapDataContext>(context); Assert.AreSame(data, context.WrappedData); Assert.AreSame(parent, context.ParentMapData); }