Skip to content

Commit 13f9ae1

Browse files
committed
Implementing Review Comments
Implementing Review Comments - Documentation Typo fixes - Removing Private RightClickOnCenter function. It is only called once and wraps a one line function call.
1 parent e3f30e7 commit 13f9ae1

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/TestStack.White/UIItems/IUIItem.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -201,19 +201,19 @@ public interface IUIItem : IActionListener, IEquatable<IUIItem>
201201
void RightClick();
202202

203203
/// <summary>
204-
/// Performas a right mouse click at a defined <remarks>Point</remarks>
204+
/// Performs a right mouse click at a defined <see cref="Point"/>
205205
/// </summary>
206-
/// <param name="point">Point to mouse right click</param>
206+
/// <param name="point">Point where to mouse right click</param>
207207
void RightClickAt(Point point);
208208

209209
/// <summary>
210-
///Perform keyboard action on this UI Item
210+
/// Perform keyboard action on this UI Item
211211
/// </summary>
212212
/// <param name="key"></param>
213213
void KeyIn(KeyboardInput.SpecialKeys key);
214214

215215
/// <summary>
216-
/// Sets a value on this UI Item
216+
/// Set a value on this UI Item
217217
/// </summary>
218218
/// <param name="value">Value to set</param>
219219
void SetValue(object value);

src/TestStack.White/UIItems/UIItem.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public virtual void DoubleClick()
337337
/// </summary>
338338
public virtual void RightClick()
339339
{
340-
RightClickOnCenter();
340+
RightClickAt(Bounds.Center());
341341
}
342342

343343
/// <summary>
@@ -592,11 +592,6 @@ internal static BasePattern Pattern(AutomationElement automationElement, Automat
592592

593593
#region Private
594594

595-
private void RightClickOnCenter()
596-
{
597-
RightClickAt(Bounds.Center());
598-
}
599-
600595
private void PerformIfValid(System.Action action)
601596
{
602597
var startTime = DateTime.Now;

0 commit comments

Comments
 (0)