Exemple #1
0
        public void TestScheme()
        {
            CT_Font       ctFont = new CT_Font();
            CT_FontScheme scheme = ctFont.AddNewScheme();

            scheme.val = (ST_FontScheme.major);
            ctFont.SetSchemeArray(0, scheme);

            XSSFFont font = new XSSFFont(ctFont);

            Assert.AreEqual(FontScheme.MAJOR, font.GetScheme());

            font.SetScheme(FontScheme.NONE);
            Assert.AreEqual(ST_FontScheme.none, ctFont.GetSchemeArray(0).val);
        }