Browse Source
Merge pull request #6476 from workgroupengineering/fixes/UnitTest_Warnings
Fixes unit test warnings
pull/6495/head
Max Katz
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
2 additions and
4 deletions
-
tests/Avalonia.Controls.UnitTests/Utils/HotKeyManagerTests.cs
-
tests/Avalonia.Input.UnitTests/KeyboardDeviceTests.cs
-
tests/Avalonia.Markup.Xaml.UnitTests/MarkupExtensions/DynamicResourceExtensionTests.cs
|
|
|
@ -10,7 +10,6 @@ using Avalonia.Styling; |
|
|
|
using Avalonia.UnitTests; |
|
|
|
using Moq; |
|
|
|
using Xunit; |
|
|
|
using System; |
|
|
|
using Avalonia.Input.Raw; |
|
|
|
using Factory = System.Func<int, System.Action<object>, Avalonia.Controls.Window, Avalonia.AvaloniaObject>; |
|
|
|
|
|
|
|
|
|
|
|
@ -2,7 +2,6 @@ |
|
|
|
using System.Windows.Input; |
|
|
|
using Avalonia.Controls; |
|
|
|
using Avalonia.Input.Raw; |
|
|
|
using Avalonia.Interactivity; |
|
|
|
using Avalonia.UnitTests; |
|
|
|
using Moq; |
|
|
|
using Xunit; |
|
|
|
@ -126,7 +125,7 @@ namespace Avalonia.Input.UnitTests |
|
|
|
{ |
|
|
|
private readonly Action _action; |
|
|
|
public DelegateCommand(Action action) => _action = action; |
|
|
|
public event EventHandler CanExecuteChanged; |
|
|
|
public event EventHandler CanExecuteChanged { add { } remove { } } |
|
|
|
public bool CanExecute(object parameter) => true; |
|
|
|
public void Execute(object parameter) => _action(); |
|
|
|
} |
|
|
|
|
|
|
|
@ -923,7 +923,7 @@ namespace Avalonia.Markup.Xaml.UnitTests.MarkupExtensions |
|
|
|
public bool HasResources => true; |
|
|
|
public List<object> RequestedResources { get; } = new List<object>(); |
|
|
|
|
|
|
|
public event EventHandler OwnerChanged; |
|
|
|
public event EventHandler OwnerChanged { add { } remove { } } |
|
|
|
|
|
|
|
public void AddOwner(IResourceHost owner) => Owner = owner; |
|
|
|
public void RemoveOwner(IResourceHost owner) => Owner = null; |
|
|
|
|