C# 클래스 NUnit.Extensions.Forms.ListViewTester

A ControlTester for testing List Views.
It includes helper methods for selecting items from the list and for clearing those selections.
상속: NUnit.Extensions.Forms.ControlTester
파일 보기 프로젝트 열기: mRemoteNG/mRemoteNG 1 사용 예제들

공개 메소드들

메소드 설명
ClearSelected ( ) : void

Clears the selections from the list box.

ListViewTester ( NUnit.Extensions.Forms.ControlTester tester, int index ) : System.Collections

Creates a ControlTester from a ControlTester and an index where the original tester's name is not unique.

It is best to use the overloaded Constructor that requires just the name parameter if possible.

ListViewTester ( string name ) : System.Collections

Creates a ControlTester from the control name.

This is the best constructor.

ListViewTester ( string name, Form form ) : System.Collections

Creates a ControlTester from the control name and the form instance.

It is best to use the overloaded Constructor that requires just the name parameter if possible.

ListViewTester ( string name, string formName ) : System.Collections

Creates a ControlTester from the control name and the form name.

It is best to use the overloaded Constructor that requires just the name parameter if possible.

Select ( int i ) : void

Selects an item in the ListBox according to its index.

Select ( string text ) : void

Selects an item in the list according to its string value.

SelectItems ( string items ) : void

Multiple selection of a range of items

SelectedItemsMatch ( string matches ) : bool

Test that only the indicated items are selected

this ( int index ) : ListViewTester

Allows you to find a ListViewTester by index where the name is not unique.

This was added to support the ability to find controls where their name is not unique. If all of your controls are uniquely named (I recommend this) then you will not need this.

비공개 메소드들

메소드 설명
FindItemByString ( string text ) : int
ItemFound ( int index ) : bool

메소드 상세

ClearSelected() 공개 메소드

Clears the selections from the list box.
public ClearSelected ( ) : void
리턴 void

ListViewTester() 공개 메소드

Creates a ControlTester from a ControlTester and an index where the original tester's name is not unique.
It is best to use the overloaded Constructor that requires just the name parameter if possible.
public ListViewTester ( NUnit.Extensions.Forms.ControlTester tester, int index ) : System.Collections
tester NUnit.Extensions.Forms.ControlTester The ControlTester.
index int The index to test.
리턴 System.Collections

ListViewTester() 공개 메소드

Creates a ControlTester from the control name.
This is the best constructor.
public ListViewTester ( string name ) : System.Collections
name string The Control name.
리턴 System.Collections

ListViewTester() 공개 메소드

Creates a ControlTester from the control name and the form instance.
It is best to use the overloaded Constructor that requires just the name parameter if possible.
public ListViewTester ( string name, Form form ) : System.Collections
name string The Control name.
form System.Windows.Forms.Form The Form instance.
리턴 System.Collections

ListViewTester() 공개 메소드

Creates a ControlTester from the control name and the form name.
It is best to use the overloaded Constructor that requires just the name parameter if possible.
public ListViewTester ( string name, string formName ) : System.Collections
name string The Control name.
formName string The Form name..
리턴 System.Collections

Select() 공개 메소드

Selects an item in the ListBox according to its index.
public Select ( int i ) : void
i int the index to select.
리턴 void

Select() 공개 메소드

Selects an item in the list according to its string value.
public Select ( string text ) : void
text string The item to select.
리턴 void

SelectItems() 공개 메소드

Multiple selection of a range of items
public SelectItems ( string items ) : void
items string
리턴 void

SelectedItemsMatch() 공개 메소드

Test that only the indicated items are selected
public SelectedItemsMatch ( string matches ) : bool
matches string
리턴 bool

this() 공개 메소드

Allows you to find a ListViewTester by index where the name is not unique.
This was added to support the ability to find controls where their name is not unique. If all of your controls are uniquely named (I recommend this) then you will not need this.
public this ( int index ) : ListViewTester
index int The index of the ListViewTester.
리턴 ListViewTester