UITestExtensions.Unit_Click (System.Windows.Controls.Button)

Function performs a Button-Click for the current control.

Namespace:SoftHai.Testing.UITest
Assembly:SoftHai.Testing

Syntax

Visual Basic
<ExtensionAttribute()> _
Public Sub Unit_Click( _
	ByVal B As System.Windows.Controls.Button _
)
C#
[ExtensionAttribute()]
public void Unit_Click(
	this System.Windows.Controls.Button B
)

Parameter

B
Type:System.Windows.Controls.Button
News Button Control

Remarks

Example

First, the namespace is imported, so that the extension methods are available:
C#
using SoftHai.Testing.UITest;
Visual Basic
Imports SoftHai.Testing.UITest
Subsequently, the extension method be used as follows:
C#
Button B = new Button();
...
B.Unit_Click();
Visual Basic
Dim B as new Button()
...
B.Unit_Click()




This WikiPage was created with Codeplex WikiEditor

Last edited Jul 19, 2010 at 9:31 AM by SoftHai, version 1

Comments

No comments yet.