Example #1
0
    public IEnumerator B3AttackMove()
    {
        battleManager.forceEnemyMove = "StandardAttack"; //Make sure enemy performs standard attack
        mainBattle.standardAttack();                     //Should do 30 * 10 / 5 = 60 damage
        yield return(new WaitForSeconds(3));

        //Enemy Health Bar
        Assert.AreEqual("Health: 40 / 100", enemyHealthBar.text);
        //Player Health Bar
        Assert.AreEqual("Health: 90 / 100", playerHealthBar.text);
    }
Example #2
0
    public IEnumerator B9CheckWhenGameOver()
    {
        enemy.Special1.setUp(battleManager, enemy, player);
        battleManager.forceEnemyMove = "Special1";
        mainBattle.standardAttack();
        yield return(new WaitForSeconds(6));

        Assert.AreEqual("mainmenu1", SceneManager.GetActiveScene().name);
    }