Browse Source

Fix test.

Steven Kirk 3 years ago
parent
commit
7e1068f441
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/Avalonia.Controls.UnitTests/ItemsControlTests.cs

+ 1 - 1
tests/Avalonia.Controls.UnitTests/ItemsControlTests.cs

@@ -66,7 +66,7 @@ namespace Avalonia.Controls.UnitTests
         [Fact]
         public void Container_Should_Have_Theme_Set_To_ItemContainerTheme()
         {
-            var theme = new ControlTheme();
+            var theme = new ControlTheme { TargetType = typeof(ContentPresenter) };
             var target = new ItemsControl
             {
                 ItemContainerTheme = theme,