using Microsoft.VisualStudio.TestTools.UnitTesting; using Senparc.Weixin.TenPay.V3; using System; using System.Collections.Generic; using System.Text; namespace Senparc.Weixin.TenPay.Test.vs2017.V3 { [TestClass] public class TenPayV3ResultTest { [TestMethod] public void GetXmlValuesTest() { var xml = @"12 SenparcGood SUCCESSSUCCESS"; var tenPayV3Result = new TenPayV3Result(xml); var result = tenPayV3Result.GetXmlValues("a"); foreach (var item in result) { Console.WriteLine(item); } var resultB = tenPayV3Result.GetXmlValues("b"); foreach (var item in resultB) { Console.WriteLine(item); } } } }