public void EmphasisExtractor_WithNoFormat_ReturnsEmptyList() { var excelCell = A.Fake <IRange>(); var cell = new EmphasisExtractor(new ExcelExtractor()).ExtractExcelCellProperty(excelCell); Assert.That(cell.TextEmphasis, Is.Empty); }
public void EmphasisExtractor_WithItalic_ReturnsCellWithItalicEmph() { var excelCell = A.Fake <IRange>(); A.CallTo(() => excelCell.Font.Italic).Returns(true); var cell = new EmphasisExtractor(new ExcelExtractor()).ExtractExcelCellProperty(excelCell); Assert.That(cell.TextEmphasis.Single(), Is.EqualTo(Cell.EmphasisEnum.Italic)); }