public async Task TestBuildGetPaymentSourcesRequestWorksForInvalidPaymentAddress() { var ex = await Assert.ThrowsExceptionAsync <IncompatiblePaymentMethodsException>(() => Payments.BuildGetPaymentSourcesAsync(wallet, DID_TRUSTEE, "pay:null1") ); }
public async Task TestBuildGetPaymentSourcesRequestWorksForUnknownPaymentMethod() { var ex = await Assert.ThrowsExceptionAsync <UnknownPaymentMethodException>(() => Payments.BuildGetPaymentSourcesAsync(wallet, DID_TRUSTEE, paymentAddress) ); }