Example #1
0
        public void ToXMLTest()
        {
            char     code     = 'a';
            string   data     = "Test Data";
            Subfield target   = new Subfield(code, data);
            XElement expected = new XElement(FileMARCXML.Namespace + "subfield", new XAttribute("code", "a"), "Test Data");
            XElement actual   = target.ToXML();

            Assert.IsTrue(XNode.DeepEquals(expected, actual));
        }