[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"), ParseStoryTestString.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"), ParseStoryTestString.Body(cell)); }