Ejemplo n.º 1
0
        public void TestDefaults()
        {
            var tp     = ThemeProvider.Deserialize("something wrong");
            var themes = tp.GetThemes();

            Assert.AreEqual(3, themes.Count());

            var defTheme = themes.First();

            Assert.AreEqual("Light", defTheme.Name);
        }
Ejemplo n.º 2
0
        public void TestAddAndSerialize()
        {
            var tp = ThemeProvider.Deserialize("something wrong");

            tp.AddTheme("new");
            var themes = tp.GetThemes();

            Assert.AreEqual(4, themes.Count());

            var serialized = tp.Serialize();
            var ntp        = ThemeProvider.Deserialize(serialized);

            Assert.AreEqual(4, ntp.GetThemes().Count());
            var serialized2 = ntp.Serialize();

            Assert.AreEqual(serialized, serialized2);
        }