Esempio n. 1
0
    //[PrebuildSetup(typeof(PaddleTests))]
    public void PaddlesHaveSpriteRenderer()
    {
        GameObject[] paddles = _setup.CreatePaddlesForTest();

        for (int i = 0; i < paddles.Length; i++)
        {
            paddles[i].GetComponent <Paddle>().RenderPaddle();
            Assert.IsNotNull(paddles[i].gameObject.GetComponent <SpriteRenderer>(), "Paddle" + i + " has no SpriteRenderer");
        }
    }
Esempio n. 2
0
    public void AtLeastOnePaddleIsSuccesfullyCreated()
    {
        GameObject[] paddles = _setup.CreatePaddlesForTest();

        Assert.IsNotNull(paddles);
    }