Пример #1
0
        public static void SerializeDeserialize_AttributeName_Success()
        {
            AttributeNamedObject ano = new AttributeNamedObject("name");
            XElement element = XmlConvert.SerializeXElement(ano);

            Assert.Equal("AttributeIdentifier", element.Name);
            Assert.Equal("name", element.Element("CustomElementIdentifier").Value);

			XmlConvertTests.SerializeDeserializeObject_Equal_Success(ano, XmlConvertOptions.None);
        }
Пример #2
0
        public static void SerializeDeserialize_AttributeName_Success()
        {
            AttributeNamedObject ano     = new AttributeNamedObject("name");
            XElement             element = XmlConvert.SerializeXElement(ano);

            Assert.Equal("AttributeIdentifier", element.Name);
            Assert.Equal("name", element.Element("CustomElementIdentifier").Value);

            XmlConvertTests.SerializeDeserializeObject_Equal_Success(ano, XmlConvertOptions.None);
        }
Пример #3
0
        public override bool Equals(object obj)
        {
            AttributeNamedObject anc = (AttributeNamedObject)obj;

            return(anc != null && StringValue == anc.StringValue);
        }