Beispiel #1
0
        public void Config()
        {
            DelegatingParagramConfigurationSection section = PracticalPattern.Configurating.ConfigurationBroker.Delegating;
            var color = section.Pictures["EventHandler"].Colorized;
            var a1    = section.Examples["MulticastMotify"].Description;

            GenericsParagramConfigurationSection s2 = PracticalPattern.Configurating.ConfigurationBroker.Generics;
            var n = s2.Diagrams.Count;
        }
        public void ConfigurationTest()
        {
            DelegatingParagramConfigurationSection s1 = ConfigurationBroker.Delegating;

            Assert.IsTrue(s1.Pictures["EventHandler"].Colorized);
            Assert.AreEqual <string>("1对n的通知", s1.Examples["MulticastNotify"].Description);

            GenericsParagramConfigurationSection s2 = ConfigurationBroker.Generics;

            Assert.AreEqual <int>(1, s2.Diagrams.Count);
        }