コード例 #1
0
        public virtual void ExcelService_WriteWorkbook()
        {
            ExcelService.WriteWorkbook(Workbook, _version, _newFileName);
            var newWorkbook = ExcelService.ReadWorkbook(_newFileName);

            Assert.IsTrue(ExcelCompare.Compare(Workbook, newWorkbook));
        }
コード例 #2
0
        public virtual void ExcelService_IgnoresThreadCulture()
        {
            ExcelService.Format = new CultureInfo("en-US");
            var before = ExcelService.ReadWorkbook(_fileName);

            Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE");
            var after = ExcelService.ReadWorkbook(_fileName);

            Assert.IsTrue(ExcelCompare.Compare(before, after));
        }
コード例 #3
0
        public virtual void ExcelService_UsesCulture()
        {
            ExcelService.Format = new CultureInfo("en-US");
            var before = ExcelService.ReadWorkbook(_fileName);

            ExcelService.Format = new CultureInfo("de-DE");
            var after = ExcelService.ReadWorkbook(_fileName);

            Assert.IsFalse(ExcelCompare.Compare(before, after));
        }