Home

Awesome

Test Framework Training

An example solution for the tests are available at the test-solution branch https://github.com/Unity-Technologies/test-framework-training/tree/test-solution

Exercise 1 - Scene content

Write an EditMode test that verifies the content of the ball scene.

Exercise 2 - Swap materials

Write a test that verifies the functionality of SwapMaterial on the ball control.

Exercise 3 - Swap materials error

Write a test that verifies the negative scenario of attempted to call swap material, when there are no materials assigned.

Exercise 4 - Applied force

Write two or more playmode tests verifying the behavior of the ball control over time.

Exercise 5 - MonoBehaviorTest

Make a MonoBehaviorTest for the ball control that verifies the position after force is no longer applied.