This file is the default file that gets created when we add the UITest project in the solution through the Xamarin.UI Android Test Project template, and we will be writing our UI tests in this file. There are certain things to note in this file:
- [TextFixture]: This is an annotation added to the Tests class that tells the UITest framework that this class contains tests to be run.
- [Setup]: Each class containing tests needs to set up an initial configuration, as with the APK file path in the previous section. This is added to the BeforeEachTest() method and tells the framework to run this method and perform the initial setup before running the test.
- [Test]: This annotation identifies the method that contains the test.