Esempio n. 1
0
        public void TestWrappingCanBeDisabled()
        {
            var paragraph = new Paragraph("Whoever fights monsters should see to it that in the process he does not become a monster. And if you gaze long enough into an abyss, the abyss will gaze back into you.")
            {
                WordWrap = false
            };

            paragraph.WriteToTrace();
        }
Esempio n. 2
0
        public void TestWrappingColumnCanBeSpecified()
        {
            var paragraph = new Paragraph("Most people die of a sort of creeping common sense, and discover when it is too late that the only things one never regrets are one's mistakes.")
            {
                WordWrapColumn = 20
            };

            paragraph.WriteToTrace();
        }
Esempio n. 3
0
 public void TestParagraphsCanBeUsed()
 {
     var paragraph = new Paragraph("The quick brown fox jumps over the lazy dog.");
     
     paragraph.WriteToTrace();
 }
Esempio n. 4
0
 public void TestLongParagraphsAreWrapped()
 {
     var paragraph = new Paragraph("Lolita, light of my life, fire of my loins. My sin, my soul. Lo-lee-ta: the tip of the tongue taking a trip of three steps down the palate to tap, at three, on the teeth. Lo. Lee. Ta.");
     
     paragraph.WriteToTrace();
 }