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