예제 #1
0
 public void PurchaseProductSuccessfully()
 {
     var inAppPurchase = new MockInAppPurchase();
     inAppPurchase.OnTransactionFinished += PurchaseProduct;
     Assert.IsTrue(inAppPurchase.PurchaseProductAsync("testId"));
 }
예제 #2
0
 public void PurchaseProductCanceled()
 {
     var inAppPurchase = new MockInAppPurchase();
     inAppPurchase.OnUserCanceled += PurchaseCanceled;
     inAppPurchase.InvokeOnUserCanceled("testId");
 }