public void SetUp() { // Create the document to be iterated through. MockDocument doc = new MockDocument(); ProvidedDocumentInformation docInfo = new ProvidedDocumentInformation(doc, @"C:\Temp\test.txt", 0); // Create the forward iterator. forwardTextIterator = new ForwardTextIterator(docInfo); }
public void SetUp() { // Create the document to be iterated through. MockDocument doc = new MockDocument(); StringTextBufferStrategy textBufferStrategy = new StringTextBufferStrategy(); textBufferStrategy.SetContent("bar"); doc.TextBufferStrategy = textBufferStrategy; // Create a doc info with an initial end offset right // at the end of the text. ProvidedDocumentInformation docInfo = new ProvidedDocumentInformation(doc, @"C:\Temp\test.txt", doc.TextLength); // Create the forward iterator. forwardTextIterator = new ForwardTextIterator(docInfo); }