コード例 #1
0
 public async Task TestBuildMintRequestWorksForEmptyOutputs()
 {
     var ex = await Assert.ThrowsExceptionAsync <InvalidStructureException>(() =>
                                                                            Payments.BuildMintRequestAsync(wallet, DID_TRUSTEE, emptyArray, null)
                                                                            );
 }
コード例 #2
0
 public async Task TestBuildMintRequestWorksForIncompatiblePaymentMethods()
 {
     var ex = await Assert.ThrowsExceptionAsync <IncompatiblePaymentMethodsException>(() =>
                                                                                      Payments.BuildMintRequestAsync(wallet, DID_TRUSTEE, incompatibleOutputs, null)
                                                                                      );
 }
コード例 #3
0
 public async Task TestBuildMintRequestWorksForUnknownPaymentMethod()
 {
     var ex = await Assert.ThrowsExceptionAsync <UnknownPaymentMethodException>(() =>
                                                                                Payments.BuildMintRequestAsync(wallet, DID_TRUSTEE, outputs, null)
                                                                                );
 }