From daf72312819da7c0051f59af80ec83359a4fc166 Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Wed, 29 May 2019 20:47:57 +0300 Subject: [PATCH] Move pointer mock to the bottom --- .../DefaultMenuInteractionHandlerTests.cs | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/Avalonia.Controls.UnitTests/Platform/DefaultMenuInteractionHandlerTests.cs b/tests/Avalonia.Controls.UnitTests/Platform/DefaultMenuInteractionHandlerTests.cs index 76a4e8dd96..fb3a5bfefb 100644 --- a/tests/Avalonia.Controls.UnitTests/Platform/DefaultMenuInteractionHandlerTests.cs +++ b/tests/Avalonia.Controls.UnitTests/Platform/DefaultMenuInteractionHandlerTests.cs @@ -10,20 +10,6 @@ namespace Avalonia.Controls.UnitTests.Platform { public class DefaultMenuInteractionHandlerTests { - class FakePointer : IPointer - { - public int Id { get; } = Pointer.GetNextFreeId(); - - public void Capture(IInputElement control) - { - Captured = control; - } - - public IInputElement Captured { get; set; } - public PointerType Type { get; } - public bool IsPrimary { get; } = true; - } - static PointerEventArgs CreateArgs(RoutedEvent ev, IInteractive source) => new PointerEventArgs(ev, source, new FakePointer(), (IVisual)source, default, new PointerPointProperties(), default); @@ -563,5 +549,19 @@ namespace Avalonia.Controls.UnitTests.Platform _action = action; } } + + class FakePointer : IPointer + { + public int Id { get; } = Pointer.GetNextFreeId(); + + public void Capture(IInputElement control) + { + Captured = control; + } + + public IInputElement Captured { get; set; } + public PointerType Type { get; } + public bool IsPrimary { get; } = true; + } } }