Ejemplo n.º 1
0
        public void TestAdminIncrementStatXmlGetAttributes()
        {
            string xml =
            @"<roar tick=""128455461333"">
                <admin>
                    <delete_player status=""ok"">
                    </delete_player>
                </admin>
            </roar>";

            System.Xml.XmlElement nn = RoarExtensions.CreateXmlElement(xml);
            Roar.DataConversion.Responses.Admin.IncrementStat increment_stat_parser = new Roar.DataConversion.Responses.Admin.IncrementStat();
            IncrementStatResponse response = increment_stat_parser.Build(nn);

            Assert.IsNotNull(response);
        }
Ejemplo n.º 2
0
        public void TestAdminIncrementStatXmlGetAttributes()
        {
            string xml =
                @"<roar tick=""128455461333"">
				<admin>
					<delete_player status=""ok"">
					</delete_player>
				</admin>
			</roar>"            ;

            System.Xml.XmlElement nn = RoarExtensions.CreateXmlElement(xml);
            Roar.DataConversion.Responses.Admin.IncrementStat increment_stat_parser = new Roar.DataConversion.Responses.Admin.IncrementStat();
            IncrementStatResponse response = increment_stat_parser.Build(nn);

            Assert.IsNotNull(response);
        }