This project is read-only.

UITestExtensions.Unit_MoveSlider (System.Windows.Controls.Slider, SoftHai.Testing.UITest.SliderDirections, SoftHai.Testing.UITest.SliderChangeValues)

Function moves a slider

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

Syntax

Visual Basic
<ExtensionAttribute()> _
Public Sub Unit_MoveSlider( _
	ByVal S As System.Windows.Controls.Slider, _
	ByVal pDirection As SoftHai.Testing.UITest.SliderDirections, _
	ByVal pChangeValue As SoftHai.Testing.UITest.SliderChangeValues _
)
C#
[ExtensionAttribute()]
public void Unit_MoveSlider(
	this System.Windows.Controls.Slider S, 
	SoftHai.Testing.UITest.SliderDirections pDirection, 
	SoftHai.Testing.UITest.SliderChangeValues pChangeValue
)

Parameter

S
Type:System.Windows.Controls.Slider
News Slider Control
pDirection
Type:SoftHai.Testing.UITest.SliderDirections
Specifies the direction of movement
pChangeValue
Type:SoftHai.Testing.UITest.SliderChangeValues
Specifies the size of the movement

Remarks

For information about the test they see Enums SliderDirections and here Slider Change Values

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#
Slider S = new Slider();
...
S.Unit_MoveSlider(SliderDirections.Increment, SliderChangeValues.Small);
Visual Basic
Dim CB as new Slider()
...
S.Unit_MoveSlider(SliderDirections.Increment, SliderChangeValues.Small)




This WikiPage was created with Codeplex WikiEditor

Last edited Jul 19, 2010 at 10:35 AM by SoftHai, version 1

Comments

No comments yet.