Exemple #1
0
        public void ThemeApplyExternalTheme()
        {
            tlog.Debug(tag, $"ThemeApplyExternalTheme START");
            Theme a1 = new Theme();
            Theme b1 = new Theme();

            Dictionary <string, string> theme = new Dictionary <string, string>
            {
                { "aaa", "111" },
                { "bbb", "222" }
            };

            DictionaryExternalTheme c1 = new DictionaryExternalTheme("myid", "myversion", theme);

            Type componentType      = typeof(string);
            Type styleType          = typeof(string);
            ExternalThemeKeyList e1 = new ExternalThemeKeyList(componentType, styleType);

            HashSet <ExternalThemeKeyList> keyListSet = new HashSet <ExternalThemeKeyList>
            {
                e1
            };

            a1.ApplyExternalTheme(c1, keyListSet);
            a1.ApplyExternalTheme(c1, null);

            tlog.Debug(tag, $"ThemeApplyExternalTheme END (OK)");
            Assert.Pass("ThemeApplyExternalTheme");
        }