public void StringWithNewlinesMakesParas() { SpreadsheetImporter.SetContentAsText(_editable, "This is some text\r\n\r\nSome more\r\nand more"); AssertThatXmlIn.Dom(_dom).HasSpecifiedNumberOfMatchesForXpath("//p", 4); AssertThatXmlIn.Dom(_dom).HasSpecifiedNumberOfMatchesForXpath("//p[text()='This is some text']", 1); AssertThatXmlIn.Dom(_dom).HasSpecifiedNumberOfMatchesForXpath("//p[text()='']", 1); AssertThatXmlIn.Dom(_dom).HasSpecifiedNumberOfMatchesForXpath("//p[text()='Some more']", 1); AssertThatXmlIn.Dom(_dom).HasSpecifiedNumberOfMatchesForXpath("//p[text()='and more']", 1); }
public void SimpleStringMakesPara() { SpreadsheetImporter.SetContentAsText(_editable, "This is some text"); AssertThatXmlIn.Dom(_dom).HasSpecifiedNumberOfMatchesForXpath("//p[text()='This is some text']", 1); }