コード例 #1
0
 public async Task TestAddRequestFeesWorksForSeveralMethods()
 {
     var ex = await Assert.ThrowsExceptionAsync <IncompatiblePaymentMethodsException>(() =>
                                                                                      Payments.AddRequestFeesAsync(wallet, DID_TRUSTEE, emptyObject, incompatibleInputs, emptyObject, null)
                                                                                      );
 }
コード例 #2
0
 public async Task testAddRequestFeesWorksForInvalidInputs()
 {
     var ex = await Assert.ThrowsExceptionAsync <InvalidStructureException>(() =>
                                                                            Payments.AddRequestFeesAsync(wallet, DID_TRUSTEE, emptyObject, invalidInputs, emptyObject, null)
                                                                            );
 }
コード例 #3
0
 public async Task TestAddRequestFeesWorksForUnknownPaymentMethod()
 {
     var ex = await Assert.ThrowsExceptionAsync <UnknownPaymentMethodException>(() =>
                                                                                Payments.AddRequestFeesAsync(wallet, DID_TRUSTEE, emptyObject, inputs, outputs, null)
                                                                                );
 }