public void TestIDHandling() { XElement testelement = new XElement("ligature", new XElement("note", new XAttribute("label", "test")), new XAttribute(XNamespace.Xml + "id", "t-123")); MeiElement test = MeiImport.XmlToMei(testelement); Assert.AreEqual(test.GetId(), "t-123"); Assert.IsNotNull(test.Element <Note>().GetId()); }
public void XmlToMeiTest() { XElement testelement = new XElement("ligature", new XElement("note", "bla")); MeiElement compare = new Ligature(); MeiElement test = MeiImport.XmlToMei(testelement); Assert.IsInstanceOfType(test, compare.GetType()); }
public void InvalidRootTest() { XElement testelement = new XElement("blubb", new XElement("note")); MeiElement conversion_test = MeiImport.XmlToMei(testelement); }