예제 #1
0
 public async Task TestBuildPaymentRequestWorksForIncompatiblePaymentMethods()
 {
     var ex = await Assert.ThrowsExceptionAsync <IncompatiblePaymentMethodsException>(() =>
                                                                                      Payments.BuildPaymentRequestAsync(wallet, DID_TRUSTEE, incompatibleInputs, emptyObject, null)
                                                                                      );
 }
예제 #2
0
 public async Task TestBuildPaymentRequestWorksForInvalidInputs()
 {
     var ex = await Assert.ThrowsExceptionAsync <InvalidStructureException>(() =>
                                                                            Payments.BuildPaymentRequestAsync(wallet, DID_TRUSTEE, invalidInputs, outputs, null)
                                                                            );
 }
예제 #3
0
 public async Task TestBuildPaymentRequestWorksForUnknownPaymentMethod()
 {
     var ex = await Assert.ThrowsExceptionAsync <UnknownPaymentMethodException>(() =>
                                                                                Payments.BuildPaymentRequestAsync(wallet, DID_TRUSTEE, inputs, outputs, null)
                                                                                );
 }