Unity can create a default C# test script for you, thereby enabling you to quickly start creating and executing tests on your project:
Generating a default test script class
How to do it...
To generate a default test script class, follow these steps:
- In the Project panel, create a folder called Editor
- Display the Test Runner panel by choosing the following menu: Window | General | Test Runner
- Ensure that the EditMode button is selected in the Test Runner panel
- Ensure that your new Editor folder is selected in the Project panel
- In the Test Runner panel, click the Create Test Script in the current folder button
- You should now have a new C# script added to your Editor folder
- To run the tests in your script class, click the...