Exemplo n.º 1
0
        public void CanCheckSingleLineWithoutSplitting()
        {
            string text      = "kishore 1234567890 1234567890 reddy";
            string splitText = TextSplitter.CheckAndSplitText(text, 15);

            Assert.AreEqual("kishore 1234567890 1234567890 reddy", splitText);
        }
Exemplo n.º 2
0
        public void CanCheckMultiLineWithOutSplitting()
        {
            string text = "Famed archaeologist/adventurer Dr. Henry \"Indiana\" Jones" + Environment.NewLine
                          + "is called back into action when he becomes entangled in a " + Environment.NewLine
                          + "Soviet plot to uncover the secret behind mysterious artifacts" + Environment.NewLine
                          + "known as the Crystal Skulls";


            string splitText = TextSplitter.CheckAndSplitText(text, 25);

            Assert.AreEqual(text, splitText);
        }