public override void OnCreate(Bundle arguments) { base.OnCreate(arguments); AssetCopier.CopyAssets(); resultsFileName = arguments.GetString("results-file-name", "TestResults.xml"); Start(); }
protected override void OnCreate(Bundle bundle) { Xamarin.Essentials.Platform.Init(this, bundle); AssetCopier.CopyAssets(); AddTestAssembly(Assembly.GetExecutingAssembly()); AddExecutionAssembly(Assembly.GetExecutingAssembly()); base.OnCreate(bundle); }
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)); } }