public void TextWrapFilePathTest() { int lineBreakPosition = m_fileProperties.GetLineBreakPosition(); String shortTestString = "testing"; shortTestString = shortTestString.PadRight(lineBreakPosition - 1, '1'); String actual = m_fileProperties.TextWrapFilePath(shortTestString); bool shouldNotContainLineBreak = actual.Contains("\n"); Assert.IsFalse(shouldNotContainLineBreak); String longTestString = shortTestString + "2222"; actual = m_fileProperties.TextWrapFilePath(longTestString); bool shouldContainLineBreak = actual.Contains("\n"); Assert.IsTrue(shouldContainLineBreak); }