Ejemplo n.º 1
0
        public void TestAcceptGetXmlAttributes()
        {
            string xml =
            @"<roar tick=""128555559022"">
                <mail>
                    <accept status=""ok""/>
                </mail>
                <!-- Inventory has changed upon receiving this mail -->
                <server>
                    <inventory_changed/>
                </server>
            </roar>";

            System.Xml.XmlElement nn = RoarExtensions.CreateXmlElement(xml);
            Roar.DataConversion.Responses.Mail.Accept accept_parser = new Roar.DataConversion.Responses.Mail.Accept();
            AcceptResponse response = accept_parser.Build(nn);
            Assert.IsNotNull(response);
        }
Ejemplo n.º 2
0
        public void TestAcceptGetXmlAttributes()
        {
            string xml =
                @"<roar tick=""128555559022"">
				<mail>
					<accept status=""ok""/>
				</mail>
				<!-- Inventory has changed upon receiving this mail -->
				<server>
					<inventory_changed/>
				</server>
			</roar>"            ;

            System.Xml.XmlElement nn = RoarExtensions.CreateXmlElement(xml);
            Roar.DataConversion.Responses.Mail.Accept accept_parser = new Roar.DataConversion.Responses.Mail.Accept();
            AcceptResponse response = accept_parser.Build(nn);

            Assert.IsNotNull(response);
        }