public IList <FoldingRegion> GetFolds(string xml)
        {
            MockTextBuffer textBuffer = new MockTextBuffer(xml);

            Folds = Parser.GetFolds(textBuffer);
            return(Folds);
        }
		public void CanGetTextFromReaderReturnedFromTextBufferCreateReader()
		{
			string expectedText = "abc";
			MockTextBuffer textBuffer = new MockTextBuffer("abc");
			
			StringBuilder text = new StringBuilder();
			using (TextReader reader = textBuffer.CreateReader()) {
				Assert.AreEqual(expectedText, reader.ReadToEnd());
			}
		}
		public void CanGetTextFromTextBufferTextProperty()
		{
			string expectedText = "abc";
			MockTextBuffer textBuffer = new MockTextBuffer(expectedText);
			Assert.AreEqual(expectedText, textBuffer.Text);
		}
		public IList<FoldingRegion> GetFolds(string xml)
		{
			MockTextBuffer textBuffer = new MockTextBuffer(xml);
			Folds = Parser.GetFolds(textBuffer);
			return Folds;
		}