public void TestRefundQuery() { var notify = (Notify)_alipayGateway.BuildRefundQuery(new Auxiliary { OutTradeNo = _outTradeNo, OutRefundNo = "123" }); Assert.IsTrue(notify.SubMessage.Contains("交易不存在")); Trace.WriteLine(Util.SerializeObject(notify)); }
public void TestRefundQuery() { Assert.Throws <GatewayException>(() => { _alipayGateway.BuildRefundQuery(new Auxiliary { OutTradeNo = _outTradeNo, OutRefundNo = "123" }); }); }