public void CanCheckSingleLineWithoutSplitting() { string text = "kishore 1234567890 1234567890 reddy"; string splitText = TextSplitter.CheckAndSplitText(text, 15); Assert.AreEqual("kishore 1234567890 1234567890 reddy", splitText); }
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); }