Skip to content

Commit 5a9700b

Browse files
committed
Made all methods virtual.
1 parent ac051f2 commit 5a9700b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/TestStack.White/Drawing/ScreenRectangle.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ internal ScreenRectangle(Rect rectangle)
3838
Convert.ToInt32(rectangle.Width), Convert.ToInt32(rectangle.Height), 0x10);
3939
}
4040

41-
internal void Show()
41+
internal virtual void Show()
4242
{
4343
TestStack.White.WindowsAPI.NativeWindow.ShowWindow(form.Handle, 8);
4444
}
4545

46-
internal void Hide()
46+
internal virtual void Hide()
4747
{
4848
form.Hide();
4949
}
@@ -69,7 +69,7 @@ internal FrameRectangle(Rect boundingRectangle)
6969
rectangles = new ScreenRectangle[] { leftBorder, topBorder, rightBorder, bottomBorder };
7070
}
7171

72-
internal void Highlight()
72+
internal virtual void Highlight()
7373
{
7474
rectangles.ToList().ForEach(x => x.Show());
7575
Thread.Sleep(CoreAppXmlConfiguration.Instance.HighlightTimeout);

src/TestStack.White/UIItems/UIItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ public virtual void RaiseClickEvent()
429429
/// <summary>
430430
/// Highlight UIItem with red frame
431431
/// </summary>
432-
public void DrawHighlight()
432+
public virtual void DrawHighlight()
433433
{
434434
Rect rectangle = this.AutomationElement.Current.BoundingRectangle;
435435

0 commit comments

Comments
 (0)