public void Logical_Children_Should_Be_Children_Of_Container() { var target = new DropDown(); target.Template = this.GetTemplate(); target.ApplyTemplate(); var childIds = ((ILogical)target).LogicalChildren.Cast<Control>().Select(x => x.Name); Assert.Equal(new[] { "contentControl", "toggle", "popup" }, childIds); }