Exemplo n.º 1
0
        public void XmlSchemaFileAssociationCanBeRetrievedAfterAddingToPanel()
        {
            XmlSchemaFileAssociationListItem item = new XmlSchemaFileAssociationListItem(".xml", "namespace-uri", "prefix");
            int index = panel.AddXmlSchemaFileAssociationListItem(item);

            Assert.AreSame(item, panel.GetXmlSchemaFileAssociationListItem(index));
        }
        public void FirstXmlFileExtensionIsBar()
        {
            XmlSchemaFileAssociationListItem expectedItem = new XmlSchemaFileAssociationListItem(".bar", "http://bar", "b");

            Assert.AreEqual(expectedItem.ToString(), panel.GetXmlSchemaFileAssociationListItem(0).ToString());
        }