C# 클래스 UnitTestUtilities.UIUtilities

파일 보기 프로젝트 열기: WKlingonsmith/FCS-Project

공개 메소드들

메소드 설명
ClickOnItem ( UIElement element ) : void

Clicks any given item. If you are clicking on a textbox, you should use the ClickOnTextbox method.

ClickOnItemNoWait ( UIElement element ) : void
ClickOnTextbox ( TextBox window_textbox ) : void

Clicks in a Textbox so you have focus, then use SendKeys to type into the textbox

CloseWindow ( Window wind ) : void

This closes a given window

RunAssert ( object expected, object actual ) : void

This verifies that the given expected and actual are equal-- if they aren't it throws an Assert

SelectComboboxItem ( ComboBox window_combobox, string item ) : void

Selects an item from a combobox

TypeIntoTextbox ( TextBox window_textbox, string valueToEnter ) : void

This clicks, deletes any values, and then types the given string into the textbox

TypeIntoTextboxNoWait ( TextBox window_textbox, string valueToEnter ) : void

This clicks, deletes any values, and then types the given string into the textbox without waiting to verify the value(s) typed

메소드 상세

ClickOnItem() 공개 정적인 메소드

Clicks any given item. If you are clicking on a textbox, you should use the ClickOnTextbox method.
public static ClickOnItem ( UIElement element ) : void
element UIElement
리턴 void

ClickOnItemNoWait() 공개 정적인 메소드

public static ClickOnItemNoWait ( UIElement element ) : void
element UIElement
리턴 void

ClickOnTextbox() 공개 정적인 메소드

Clicks in a Textbox so you have focus, then use SendKeys to type into the textbox
public static ClickOnTextbox ( TextBox window_textbox ) : void
window_textbox System.Windows.Controls.TextBox
리턴 void

CloseWindow() 공개 정적인 메소드

This closes a given window
public static CloseWindow ( Window wind ) : void
wind System.Windows.Window
리턴 void

RunAssert() 공개 정적인 메소드

This verifies that the given expected and actual are equal-- if they aren't it throws an Assert
public static RunAssert ( object expected, object actual ) : void
expected object
actual object
리턴 void

SelectComboboxItem() 공개 정적인 메소드

Selects an item from a combobox
public static SelectComboboxItem ( ComboBox window_combobox, string item ) : void
window_combobox System.Windows.Controls.ComboBox
item string
리턴 void

TypeIntoTextbox() 공개 정적인 메소드

This clicks, deletes any values, and then types the given string into the textbox
public static TypeIntoTextbox ( TextBox window_textbox, string valueToEnter ) : void
window_textbox System.Windows.Controls.TextBox
valueToEnter string
리턴 void

TypeIntoTextboxNoWait() 공개 정적인 메소드

This clicks, deletes any values, and then types the given string into the textbox without waiting to verify the value(s) typed
public static TypeIntoTextboxNoWait ( TextBox window_textbox, string valueToEnter ) : void
window_textbox System.Windows.Controls.TextBox
valueToEnter string
리턴 void