//[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"); } }
public void AtLeastOnePaddleIsSuccesfullyCreated() { GameObject[] paddles = _setup.CreatePaddlesForTest(); Assert.IsNotNull(paddles); }