Example #1
0
    public IEnumerator SpawnPlayerTest()
    {
        // Spawn player
        PlayerSpawnerComponent.SpawnPlayer();
        yield return(new WaitForSeconds(0.1f));

        // Assert status based on if player actually spawned
        Assert.IsTrue(PlayerSpawnerComponent.IsPlayerSpawned());
        PlayerSpawnerComponent.DestroySpawnedPlayer();
    }