public void TestCancel() { var notify = (Notify)_alipayGateway.BuildCancel(new Auxiliary { OutTradeNo = _outTradeNo }); Assert.IsTrue(notify.Code.Contains("10000")); Trace.WriteLine(Util.SerializeObject(notify)); }
public void TestCancel() { Assert.ThrowsException <GatewayException>(() => { _alipayGateway.BuildCancel(new Auxiliary { OutTradeNo = _outTradeNo }); }); }