[Test] public void FoldedWithoutExtraTextFormatsBody() { var cell = new CellBase(string.Empty); cell.SetAttribute(CellAttribute.Body, "stuff"); cell.SetAttribute(CellAttribute.Folded, string.Empty); Assert.AreEqual(FormatFolded("stuff"), TreeCellWriter.Body(cell)); }
[Test] public void FoldedWithExtraTextIsFormatted() { var cell = new CellBase(string.Empty); cell.SetAttribute(CellAttribute.Body, string.Empty); cell.SetAttribute(CellAttribute.Folded, "more"); Assert.AreEqual(FormatFolded("more"), TreeCellWriter.Body(cell)); }