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

            Folds = Parser.GetFolds(textBuffer);
            return(Folds);
        }
Ejemplo n.º 2
0
		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());
			}
		}
Ejemplo n.º 3
0
		public void CanGetTextFromTextBufferTextProperty()
		{
			string expectedText = "abc";
			MockTextBuffer textBuffer = new MockTextBuffer(expectedText);
			Assert.AreEqual(expectedText, textBuffer.Text);
		}
Ejemplo n.º 4
0
		public IList<FoldingRegion> GetFolds(string xml)
		{
			MockTextBuffer textBuffer = new MockTextBuffer(xml);
			Folds = Parser.GetFolds(textBuffer);
			return Folds;
		}