public void RecordField_FromXml_1() { const string text = @"<?xml version=""1.0"" encoding=""utf-16""?>" + @"<field xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" tag=""200"" value=""Значение"">" + @" <subfield code=""a"" value=""Заглавие"" />" + @" <subfield code=""e"" value=""подзаголовочные"" />" + @" <subfield code=""f"" value=""об ответственности"" />" + @"</field>"; RecordField field = RecordFieldUtility.FromXml(text); Assert.AreEqual(200, field.Tag); Assert.AreEqual(3, field.SubFields.Count); }