Ejemplo n.º 1
0
        public IEnumerator CheckBallYIsGreaterThanZero()
        {
            Vector2 checkPos = BallBoundaryDetection.getStartPos();

            Assert.That(checkPos.y, Is.GreaterThan(0.0f));
            yield return(null);
        }
Ejemplo n.º 2
0
        public IEnumerator CheckBallIsAlive()
        {
            bool checkBall = BallBoundaryDetection.getAlive();

            Assert.IsTrue(checkBall);
            yield return(null);
        }
Ejemplo n.º 3
0
        public IEnumerator CheckBallYIsLessThanHeightOfScreen()
        {
            Vector2 checkPos = BallBoundaryDetection.getStartPos();

            Assert.That(checkPos.y, Is.LessThan(10.0f));
            Assert.That(checkPos.y, Is.GreaterThan(0.0f));
            yield return(null);
        }