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