Browse Source

Fix failing test.

It was probably not a good idea to test the contents of the template explicitly in unit tests, but here we are...
pull/8042/head
Steven Kirk 5 years ago
parent
commit
6b2cedfcd1
  1. 8
      tests/Avalonia.Controls.UnitTests/Primitives/PopupRootTests.cs

8
tests/Avalonia.Controls.UnitTests/Primitives/PopupRootTests.cs

@ -78,9 +78,13 @@ namespace Avalonia.Controls.UnitTests.Primitives
var templatedChild = ((Visual)target.Host).GetVisualChildren().Single();
Assert.IsType<Panel>(templatedChild);
Assert.IsType<LayoutTransformControl>(templatedChild);
var visualLayerManager = templatedChild.GetVisualChildren().Skip(1).Single();
var panel = templatedChild.GetVisualChildren().Single();
Assert.IsType<Panel>(panel);
var visualLayerManager = panel.GetVisualChildren().Skip(1).Single();
Assert.IsType<VisualLayerManager>(visualLayerManager);

Loading…
Cancel
Save