using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Avalonia.Controls; using Avalonia.Controls.Templates; using Avalonia.Styling; using Avalonia.VisualTree; using Xunit; namespace Avalonia.Base.UnitTests.Styling { public class SelectorTests_Multiple { [Fact] public void Named_Template_Child_Of_Control_With_Two_Classes() { var template = new FuncControlTemplate((parent, scope) => { return new Border { Name = "border", }.RegisterInNameScope(scope); }); var control = new Button { Template = template, }; control.ApplyTemplate(); var selector = default(Selector) .OfType