Esempio n. 1
0
        public IEnumerator checkThatPipeHasNotBeenRotated()
        {
            float currentRotation = MartinPipeScript.getRotation();

            Assert.AreEqual(currentRotation, 0);
            yield return(null);
        }
Esempio n. 2
0
        public IEnumerator checkAliveFalse()
        {
            bool check = MartinPipeScript.getAlive();

            Assert.IsTrue(check != true);
            yield return(null);
        }
Esempio n. 3
0
        public IEnumerator checkedIfDistanceAfterTravellingThroughPipeIsCorrect()
        {
            Vector2 startingPos = new Vector2(0.0f, 0.0f);

            startingPos.y -= MartinPipeScript.getHeight();
            Assert.AreEqual(startingPos, new Vector2(0.0f, -0.9f));
            yield return(null);
        }