Beispiel #1
0
        public void TestItemsUseXmlGetAttributes()
        {
            string xml =
                @"<roar tick=""135571857913"">
				<items>
					<use status=""ok""/>
				</items>
				<server>
					<item_use item_id=""232839631""/>
				</server>
			</roar>"            ;

            System.Xml.XmlElement nn = RoarExtensions.CreateXmlElement(xml);
            Roar.DataConversion.Responses.Items.Use use_parser = new Roar.DataConversion.Responses.Items.Use();
            UseResponse response = use_parser.Build(nn);

            Assert.IsNotNull(response);
        }
        public void TestItemsUseXmlGetAttributes()
        {
            string xml =
            @"<roar tick=""135571857913"">
                <items>
                    <use status=""ok""/>
                </items>
                <server>
                    <item_use item_id=""232839631""/>
                </server>
            </roar>";

            System.Xml.XmlElement nn = RoarExtensions.CreateXmlElement(xml);
            Roar.DataConversion.Responses.Items.Use use_parser = new Roar.DataConversion.Responses.Items.Use();
            UseResponse response = use_parser.Build(nn);
            Assert.IsNotNull(response);
        }