#develop (short for SharpDevelop) is a free IDE for .NET programming languages.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

60 lines
998 B

// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
// <version>$Revision$</version>
// </file>
using System;
using SearchAndReplace;
namespace ICSharpCode.SharpDevelop.Tests.Utils
{
public class MockCurrentDocumentIterator : IDocumentIterator
{
ProvidedDocumentInformation current;
string currentFileName = String.Empty;
bool moved;
public MockCurrentDocumentIterator()
{
}
public ProvidedDocumentInformation Current {
get {
return current;
}
set {
current = value;
}
}
public string CurrentFileName {
get {
return currentFileName;
}
set {
currentFileName = value;
}
}
public bool MoveForward()
{
if (moved) {
return false;
} else {
moved = true;
}
return true;
}
public bool MoveBackward()
{
return false;
}
public void Reset()
{
}
}
}