예제 #1
0
        public void TestSkinningNonControls()
        {
            var skinService = new SkinService();
            var generalA    = new GeneralObjectA();

            skinService.OpenSkinFile(".\\Resources\\TestSkin.xml");
            skinService.ApplyActiveSkin();
            SkinService.ApplyActiveSkin(generalA);
            Assert.IsTrue(generalA.StringA == "TestSkinValueA");
            skinService.ResetSkin();
            Assert.IsTrue(generalA.StringA == null);
        }
예제 #2
0
        public void TestSkinningNonControls()
        {
            var skinService = new SkinService();
            var generalA = new GeneralObjectA();

            skinService.OpenSkinFile(".\\Resources\\TestSkin.xml");
            skinService.ApplyActiveSkin();
            SkinService.ApplyActiveSkin(generalA);
            Assert.IsTrue(generalA.StringA == "TestSkinValueA");
            skinService.ResetSkin();
            Assert.IsTrue(generalA.StringA == null);
        }