コード例 #1
0
 public async Task TestBuildGetPaymentSourcesRequestWorksForInvalidPaymentAddress()
 {
     var ex = await Assert.ThrowsExceptionAsync <IncompatiblePaymentMethodsException>(() =>
                                                                                      Payments.BuildGetPaymentSourcesAsync(wallet, DID_TRUSTEE, "pay:null1")
                                                                                      );
 }
コード例 #2
0
 public async Task TestBuildGetPaymentSourcesRequestWorksForUnknownPaymentMethod()
 {
     var ex = await Assert.ThrowsExceptionAsync <UnknownPaymentMethodException>(() =>
                                                                                Payments.BuildGetPaymentSourcesAsync(wallet, DID_TRUSTEE, paymentAddress)
                                                                                );
 }