C# Class CommentReflowerTest.TestFileWrapper

This class implements enough of EnvDTE.TextDocument for regression testing.
Inheritance: EnvDTE.TextDocument
显示文件 Open project: kmunson/CommentReflowerVSIX Class Usage Examples

Public Methods

Method Description
ClearBookmarks ( ) : void
CreateEditPoint ( EnvDTE tp ) : EnvDTE.EditPoint
GetLine ( int lineNum ) : string
GetNumberLines ( ) : int
MarkText ( string st, int i ) : bool
OnDelete ( TestTextPoint startPoint, object obj ) : void
OnInsert ( TestTextPoint startPoint, string st ) : void
PrintOut ( ) : void
ReplacePattern ( string a, string b, int c, EnvDTE &d ) : bool
ReplaceText ( string a, string b, int i ) : bool
SetLine ( int lineNum, string val ) : void
TestFileWrapper ( string fileName ) : System
WriteToFile ( string fileName ) : void

Method Details

ClearBookmarks() public method

public ClearBookmarks ( ) : void
return void

CreateEditPoint() public method

public CreateEditPoint ( EnvDTE tp ) : EnvDTE.EditPoint
tp EnvDTE
return EnvDTE.EditPoint

GetLine() public method

public GetLine ( int lineNum ) : string
lineNum int
return string

GetNumberLines() public method

public GetNumberLines ( ) : int
return int

MarkText() public method

public MarkText ( string st, int i ) : bool
st string
i int
return bool

OnDelete() public method

public OnDelete ( TestTextPoint startPoint, object obj ) : void
startPoint TestTextPoint
obj object
return void

OnInsert() public method

public OnInsert ( TestTextPoint startPoint, string st ) : void
startPoint TestTextPoint
st string
return void

PrintOut() public method

public PrintOut ( ) : void
return void

ReplacePattern() public method

public ReplacePattern ( string a, string b, int c, EnvDTE &d ) : bool
a string
b string
c int
d EnvDTE
return bool

ReplaceText() public method

public ReplaceText ( string a, string b, int i ) : bool
a string
b string
i int
return bool

SetLine() public method

public SetLine ( int lineNum, string val ) : void
lineNum int
val string
return void

TestFileWrapper() public method

public TestFileWrapper ( string fileName ) : System
fileName string
return System

WriteToFile() public method

public WriteToFile ( string fileName ) : void
fileName string
return void