Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }