예제 #1
0
        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());
        }
예제 #2
0
        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());
        }
예제 #3
0
        public void InvalidRootTest()
        {
            XElement testelement = new XElement("blubb", new XElement("note"));

            MeiElement conversion_test = MeiImport.XmlToMei(testelement);
        }