|
|
@@ -131,6 +131,7 @@ namespace Avalonia.Controls.UnitTests
|
|
|
var child = new Control();
|
|
|
var items = new AvaloniaList<Control>(child);
|
|
|
|
|
|
+ var root = new TestRoot(target);
|
|
|
target.Template = GetTemplate();
|
|
|
target.Items = items;
|
|
|
items.RemoveAt(0);
|
|
|
@@ -283,6 +284,7 @@ namespace Avalonia.Controls.UnitTests
|
|
|
var items = new AvaloniaList<string> { "Foo" };
|
|
|
var called = false;
|
|
|
|
|
|
+ var root = new TestRoot(target);
|
|
|
target.Template = GetTemplate();
|
|
|
target.Items = items;
|
|
|
target.ApplyTemplate();
|
|
|
@@ -303,6 +305,7 @@ namespace Avalonia.Controls.UnitTests
|
|
|
var items = new AvaloniaList<string> { "Foo", "Bar" };
|
|
|
var called = false;
|
|
|
|
|
|
+ var root = new TestRoot(target);
|
|
|
target.Template = GetTemplate();
|
|
|
target.Items = items;
|
|
|
target.ApplyTemplate();
|
|
|
@@ -376,6 +379,7 @@ namespace Avalonia.Controls.UnitTests
|
|
|
Items = new[] { 1, 2, 3 },
|
|
|
};
|
|
|
|
|
|
+ var root = new TestRoot(target);
|
|
|
Assert.DoesNotContain(":empty", target.Classes);
|
|
|
}
|
|
|
|