Slide 14
Slide 14 text
public class SpaceShipPlaymodeTest {
[UnityTest]
public IEnumerator SpaceShipPlaymodeTestWithEnumeratorPasses
var spaceShip = new GameObject("ship")
.AddComponent();
spaceShip.Velocity = Vector3.up;
Assert.AreEqual(spaceShip.transform.position, Vector3.ze
yield return new WaitForSeconds(1F);
Assert.Greater(spaceShip.transform.position.y, 0F);
}
}