Exemple #1
0
    [UnityTest] public IEnumerator LazerAccends()
    {
        Shit       shit     = v.GetShit();
        GameObject lazer    = shit.SpawnLazer();
        float      initialY = lazer.transform.position.y;

        yield return(new WaitForSeconds(0.1f));

        Assert.Greater(lazer.transform.position.y, initialY);
    }
Exemple #2
0
    [UnityTest] public IEnumerator LazerDestroyesAss()
    {
        Shit       shit    = v.GetShit();
        GameObject lazer   = shit.SpawnLazer();
        Spawner    spawner = v.spawner;
        GameObject ass     = spawner.SpawnAssteroid();

        lazer.transform.position = ass.transform.position;
        yield return(new WaitForSeconds(0.1f));

        UnityEngine.Assertions.Assert.IsNull(ass);
    }