Esempio n. 1
0
 public static void ClassInitialize(TestContext context)
 {
     wb = new Workbook();
     wb.Bootstrap();
     ws = wb.Worksheets.Add("CellTests");
     ws.Bootstrap();
 }
Esempio n. 2
0
        public void Test_Workbook_Bootstrap()
        {
            wb.Bootstrap();
            Assert.IsTrue(wb.Worksheets.Count == 0);
            var style = wb.DefaultStyle;

            Assert.AreEqual(style.Font.Name, Settings.FontName);
            Assert.AreEqual(style.Font.Size, Settings.FontSize);
            Assert.AreEqual(style.HorizontalAlignment, TextAlignmentType.Left);
            Assert.AreEqual(style.VerticalAlignment, TextAlignmentType.Center);
        }