public void CreateAddAttributeDialog() { AddXmlNodeDialog dialog = (AddXmlNodeDialog)treeViewContainer.CallCreateAddAttributeDialog(new string[0]); Panel bottomPanel = (Panel)dialog.Controls["bottomPanel"]; Label customNameTextBoxLabel = (Label)bottomPanel.Controls["customNameTextBoxLabel"]; Assert.AreEqual(StringParser.Parse("${res:ICSharpCode.XmlEditor.AddAttributeDialog.Title}"), dialog.Text); Assert.AreEqual(StringParser.Parse("${res:ICSharpCode.XmlEditor.AddAttributeDialog.CustomAttributeLabel}"), customNameTextBoxLabel.Text); }