Exemplo n.º 1
0
        [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));
        }
Exemplo n.º 2
0
        [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));
        }