Browse Source

Register a font manager.

`DatePickerTests` are proving to be flaky, register the services that are reported missing when they fail.
Steven Kirk 5 years ago
parent
commit
f1e4a6a50a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tests/Avalonia.Controls.UnitTests/DatePickerTests.cs

+ 3 - 1
tests/Avalonia.Controls.UnitTests/DatePickerTests.cs

@@ -203,7 +203,9 @@ namespace Avalonia.Controls.UnitTests
         }
 
         private static TestServices Services => TestServices.MockThreadingInterface.With(
-            standardCursorFactory: Mock.Of<IStandardCursorFactory>());
+            fontManagerImpl: new MockFontManagerImpl(),
+            standardCursorFactory: Mock.Of<IStandardCursorFactory>(),
+            textShaperImpl: new MockTextShaperImpl());
 
         private IControlTemplate CreateTemplate()
         {