Ejemplo n.º 1
0
        public void SetChildTemplate()
        {
            var box = new AutoCompleteBox();
            SilverUnit.SetTemplateChild(box, "Text", new TextBox());
            SilverUnit.SetTemplateChild(box, "Popup", new Popup());
            SilverUnit.SetTemplateChild(box, "SelectionAdapter", new ListBox());
            SilverUnit.SetTemplateChild(box, "DropDownToggle", new ToggleButton());

            box.OnApplyTemplate();
            SilverUnit.Assert.VisualStatedWasChangedTo("Normal",box,false);
        }