This commit is contained in:
Yan Drugalya 2019-01-28 14:38:15 +01:00 коммит произвёл GitHub
Родитель fbed21497c
Коммит e51d2ecde6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -38,6 +38,6 @@ Write two or more playmode tests verifying the behavior of the ball control over
Make a MonoBehaviorTest for the ball control that verifies the position after force is no longer applied.
* Create an testable extension of BallControl and let that implement IMonoBehaviourTest. E.g. BallControlTestable
* Use the IsTestFinished to control when the test should stop sending updates on the control.
* In a unity test create a new MonoBehaviorTest<BallControlTestable> and yield that object, once it is set up.
* In a unity test create a new MonoBehaviourTest<BallControlTestable> and yield that object, once it is set up.
* After yielding the monoBehaviorTest, you can verify the position
* You can use GameObject.Find("MonoBehaviourTest: " + typeof(BallControlTestable).FullName); to find the gameObject that has the ball control.