public void NewLines(string s, NewLineLocation[] expected)
        {
            var doc = new DocumentBuffer();

            doc.SetContent(s);
            var nls = doc.GetNewLineLocations().ToArray();

            for (var i = 0; i < nls.Length; i++)
            {
                Assert.AreEqual(nls[i].Kind, expected[i].Kind);
                Assert.AreEqual(nls[i].EndIndex, expected[i].EndIndex);
            }
        }