Use the Unity Test Framework APIs to write tests specially adapted to the unique features of the Unity Editor and runtime.
Topic | Description |
---|---|
Performing actions before and after tests | Perform pre-test setup and post-test cleanup to ensure your tests run in the right conditions. |
Asserting and comparing | Perform assertions with constraints and compare the values of custom Unity types in your tests. |
Yield instructions for the Editor | Yield instructions for the Unity Editor from your Edit mode tests, using either a set of pre-defined common instructions or defining your own. |
Writing parameterized tests | Write parameterized tests for data-driven testing. |
Writing asynchronous tests | Write asynchronous tests with the .NET Task asynchronous programming model. |