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