public void TypedConstructor_WitName_ExpectedValues() { // Setup const string name = "name"; // Call var data = new TypedTestFeatureBasedMapData(name); // Assert Assert.IsInstanceOf <FeatureBasedMapData>(data); Assert.AreEqual(name, data.Name); Assert.IsNull(data.Theme); }
public void TypedConstructor_WithNameAndCategoryThemes_ExpectedValues() { // Setup const string name = "name"; var mapTheme = new MapTheme <TestCategoryTheme>("test", new[] { new TestCategoryTheme() }); // Call var data = new TypedTestFeatureBasedMapData(name, mapTheme); // Assert Assert.IsInstanceOf <FeatureBasedMapData>(data); Assert.AreEqual(name, data.Name); Assert.AreSame(mapTheme, data.Theme); }