public virtual void ExcelService_WriteWorkbook() { ExcelService.WriteWorkbook(Workbook, _version, _newFileName); var newWorkbook = ExcelService.ReadWorkbook(_newFileName); Assert.IsTrue(ExcelCompare.Compare(Workbook, newWorkbook)); }
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)); }
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)); }