Browse Source

Fixed tests

pull/5378/head
Yoh Deadfall 5 years ago
parent
commit
a767773eb2
  1. 4
      tests/Avalonia.Controls.UnitTests/MenuItemTests.cs

4
tests/Avalonia.Controls.UnitTests/MenuItemTests.cs

@ -181,10 +181,10 @@ namespace Avalonia.Controls.UnitTests
{
}
public TestCommand(Func<object, bool> canExecute, Action<object> execute)
public TestCommand(Func<object, bool> canExecute, Action<object> execute = null)
{
_canExecute = canExecute;
_execute = execute;
_execute = execute ?? (_ => { });
}
public int SubscriptionCount { get; private set; }

Loading…
Cancel
Save