protected override IEnumerator RunTest() { IntegrationTestUtils.SetReadOnlyData(mCurrentTestData.SaveKey, DrsStringUtils.Replace(mCurrentTestData.SaveValue, "NUM", 1)); IntegrationTestUtils.SetPlayerCurrency(0); yield return(mBackend.WaitUntilNotBusy()); yield return(MakeUpgradeCall()); FailTestIfClientInSync("Test_CannotAffordUpgrade"); }
private IEnumerator CannotAffordNewTrainer() { IntegrationTestUtils.SetReadOnlyData(SAVE_KEY, DrsStringUtils.Replace(SAVE_VALUE, "NUM", 1)); IntegrationTestUtils.SetPlayerCurrency(0); yield return(mBackend.WaitUntilNotBusy()); yield return(MakePurchaseCall()); FailTestIfClientInSync("CannotAffordNewTrainer"); }
protected override IEnumerator RunTest() { IntegrationTestUtils.SetReadOnlyData(mCurrentTestData.SaveKey, DrsStringUtils.Replace(mCurrentTestData.SaveValue, "NUM", 1)); IntegrationTestUtils.SetPlayerCurrency(mCurrentTestData.Cost); yield return(mBackend.WaitUntilNotBusy()); yield return(MakeUpgradeCall()); FailTestIfCurrencyDoesNotEqual(0); yield return(FailTestIfNotProgressLevel <ProgressBase>(mCurrentTestData.TestClass, mCurrentTestData.TestID, 2)); }
private IEnumerator CanAffordNewTrainer() { IntegrationTestUtils.SetReadOnlyData(SAVE_KEY, DrsStringUtils.Replace(SAVE_VALUE, "NUM", 1)); IntegrationTestUtils.SetPlayerCurrency(COST); yield return(mBackend.WaitUntilNotBusy()); yield return(MakePurchaseCall()); FailTestIfCurrencyDoesNotEqual(0); FailTestIfReturnedCallDoesNotEqual(CloudTestMethods.getTrainerCount.ToString(), 2); yield return(mBackend.WaitUntilNotBusy()); }