コード例 #1
0
        public override void OnCreate(Bundle arguments)
        {
            base.OnCreate(arguments);

            AssetCopier.CopyAssets();

            resultsFileName = arguments.GetString("results-file-name", "TestResults.xml");

            Start();
        }
コード例 #2
0
        protected override void OnCreate(Bundle bundle)
        {
            Xamarin.Essentials.Platform.Init(this, bundle);

            AssetCopier.CopyAssets();

            AddTestAssembly(Assembly.GetExecutingAssembly());
            AddExecutionAssembly(Assembly.GetExecutingAssembly());

            base.OnCreate(bundle);
        }
コード例 #3
0
        static void Main(string[] args)
        {
            AssetCopier.CopyAssets();

            if (args?.Length > 0 || Environment.GetEnvironmentVariable("NUNIT_AUTOEXIT")?.Length > 0) // usually means this is from xharness
            {
                UIApplication.Main(args, null, nameof(TestApplicationDelegate));
            }
            else
            {
                UIApplication.Main(args, null, nameof(AppDelegate));
            }
        }