// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { // create a new window instance based on the screen size window = new UIWindow(UIScreen.MainScreen.Bounds); runner = new TouchRunner(window); // We need this to ensure the execution assembly is part of the app bundle runner.AddExecutionAssembly(typeof(ExtensibilityPointFactory).Assembly); // tests can be inside the main assembly runner.Add(Assembly.GetExecutingAssembly()); // otherwise you need to ensure that the test assemblies will // become part of the app bundle // runner.Add(typeof(MonoTouchFixtures.Test.Test).Assembly); #if false // you can use the default or set your own custom writer (e.g. save to web site and tweet it ;-) runner.Writer = new TcpTextWriter ("10.0.1.2", 16384); // start running the test suites as soon as the application is loaded runner.AutoStart = true; // crash the application (to ensure it's ended) and return to springboard runner.TerminateAfterExecution = true; #endif window.RootViewController = new UINavigationController(runner.GetViewController()); // make the window visible window.MakeKeyAndVisible(); return true; }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { // create a new window instance based on the screen size window = new UIWindow (UIScreen.MainScreen.Bounds); runner = new TouchRunner (window); runner.Add (System.Reflection.Assembly.GetExecutingAssembly ()); window.RootViewController = new UINavigationController (runner.GetViewController ()); window.MakeKeyAndVisible (); return true; }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { // create a new window instance based on the screen size window = new UIWindow(UIScreen.MainScreen.Bounds); runner = new TouchRunner(window); // register every tests included in the main application/assembly runner.Add(System.Reflection.Assembly.GetExecutingAssembly()); window.RootViewController = new UINavigationController(runner.GetViewController()); // make the window visible window.MakeKeyAndVisible(); return(true); }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { // create a new window instance based on the screen size Window = new UIWindow(UIScreen.MainScreen.Bounds); Runner = new TouchRunner(Window); // tests can be inside the main assembly Runner.Add(Assembly.GetExecutingAssembly()); Window.RootViewController = new UINavigationController(Runner.GetViewController()); // make the window visible Window.MakeKeyAndVisible(); return(true); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { // create a new window instance based on the screen size window = new UIWindow(UIScreen.MainScreen.Bounds); runner = new TouchRunner(window); // tests can be inside the main assembly runner.Add(Assembly.GetExecutingAssembly()); runner.Add(typeof(BundledResources.ResourcesTest).Assembly); window.RootViewController = new UINavigationController(runner.GetViewController()); // make the window visible window.MakeKeyAndVisible(); return(true); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { // create a new window instance based on the screen size window = new UIWindow(UIScreen.MainScreen.Bounds); runner = new TouchRunner(window); runner.Filter = new NotFilter(new CategoryExpression("MobileNotWorking,NotOnMac,NotWorking,ValueAdd,CAS,InetAccess,NotWorkingInterpreter").Filter); // register every tests included in the main application/assembly runner.Add(System.Reflection.Assembly.GetExecutingAssembly()); window.RootViewController = new UINavigationController(runner.GetViewController()); // make the window visible window.MakeKeyAndVisible(); return(true); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { #if __MACCATALYST__ // Debug spew to track down https://github.com/xamarin/maccore/issues/2414 Console.WriteLine("AppDelegate.FinishedLaunching"); #endif window = new UIWindow(UIScreen.MainScreen.Bounds); runner = new TouchRunner(window); runner.Add(System.Reflection.Assembly.GetExecutingAssembly()); runner.Add(typeof(Xamarin.BindingTests2.BindingTest).Assembly); runner.Add(typeof(Xamarin.BindingTests.ProtocolTest).Assembly); window.RootViewController = new UINavigationController(runner.GetViewController()); window.MakeKeyAndVisible(); return(true); }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { // Override point for customization after application launch. // If not required for your application you can safely delete this method // create a new window instance based on the screen size Window = new UIWindow(UIScreen.MainScreen.Bounds); runner = new TouchRunner(Window); // register every tests included in the main application/assembly runner.Add(System.Reflection.Assembly.GetExecutingAssembly()); Window.RootViewController = new UINavigationController(runner.GetViewController()); // make the window visible Window.MakeKeyAndVisible(); return(true); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { window = new UIWindow(UIScreen.MainScreen.Bounds); runner = new TouchRunner(window); // tests can be inside the main assembly runner.Add(Assembly.GetExecutingAssembly()); #if false // you can use the default or set your own custom writer (e.g. save to web site and tweet it ;-) runner.Writer = new TcpTextWriter("10.0.1.2", 16384); // start running the test suites as soon as the application is loaded runner.AutoStart = true; // crash the application (to ensure it's ended) and return to springboard runner.TerminateAfterExecution = true; #endif window.RootViewController = new UINavigationController(runner.GetViewController()); window.MakeKeyAndVisible(); return(true); }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { #if __MACCATALYST__ // Debug spew to track down https://github.com/xamarin/maccore/issues/2414 Console.WriteLine("AppDelegate.FinishedLaunching"); #endif // create a new window instance based on the screen size Window = new UIWindow(UIScreen.MainScreen.Bounds); Runner = new TouchRunner(Window); // tests can be inside the main assembly Runner.Add(Assembly.GetExecutingAssembly()); Window.RootViewController = new UINavigationController(Runner.GetViewController()); // make the window visible Window.MakeKeyAndVisible(); return(true); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { // create a new window instance based on the screen size window = new UIWindow(UIScreen.MainScreen.Bounds); runner = new TouchRunner(window); // tests can be inside the main assembly runner.Add(Assembly.GetExecutingAssembly()); runner.Add(typeof(EmbeddedResources.ResourcesTest).Assembly); runner.Add(typeof(Xamarin.BindingTests.ProtocolTest).Assembly); window.RootViewController = new UINavigationController(runner.GetViewController()); // make the window visible window.MakeKeyAndVisible(); // required for the background tasks tests, we can only register the tasks in this method BGTaskSchedulerTest.RegisterTestTasks(); return(true); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { // create a new window instance based on the screen size window = new UIWindow(UIScreen.MainScreen.Bounds); runner = new TouchRunner(window); // register every tests included in the main application/assembly runner.Add(System.Reflection.Assembly.GetExecutingAssembly()); Gigya.InitWithAPIKey("3_Sh5iokMA9q0k5i8s5P4K3O8eYAax9Q0QPLPsXO0MRa4YXiETXRTTypmr8iYAlfRz", UIApplication.SharedApplication, new NSDictionary()); NavigationController = new UINavigationController(runner.GetViewController()); window.RootViewController = NavigationController; // make the window visible window.MakeKeyAndVisible(); return(Facebook.CoreKit.ApplicationDelegate.SharedInstance.FinishedLaunching(app, options)); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { #if __MACCATALYST__ // Debug spew to track down https://github.com/xamarin/maccore/issues/2414 Console.WriteLine("AppDelegate.FinishedLaunching"); #endif // create a new window instance based on the screen size window = new UIWindow(UIScreen.MainScreen.Bounds); runner = new TouchRunner(window); // register every tests included in the main application/assembly runner.Add(System.Reflection.Assembly.GetExecutingAssembly()); window.RootViewController = new UINavigationController(runner.GetViewController()); // make the window visible window.MakeKeyAndVisible(); return(true); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { ServicePointManager .ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true; // create a new window instance based on the screen size window = new UIWindow(UIScreen.MainScreen.Bounds); runner = new TouchRunner(window); // register every tests included in the main application/assembly runner.Add(System.Reflection.Assembly.GetExecutingAssembly()); window.RootViewController = new UINavigationController(runner.GetViewController()); // make the window visible window.MakeKeyAndVisible(); return(true); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { // create a new window instance based on the screen size window = new UIWindow(UIScreen.MainScreen.Bounds); runner = new TouchRunner(window); // register every tests included in the main application/assembly runner.Add(System.Reflection.Assembly.GetExecutingAssembly()); #if UNITTEST // start running the test suites as soon as the application is loaded runner.AutoStart = true; // crash the application (to ensure it's ended) and return to springboard runner.TerminateAfterExecution = true; #endif window.RootViewController = new UINavigationController(runner.GetViewController()); // make the window visible window.MakeKeyAndVisible(); return(true); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { #if __MACCATALYST__ // Debug spew to track down https://github.com/xamarin/maccore/issues/2414 Console.WriteLine("AppDelegate.FinishedLaunching"); #endif // create a new window instance based on the screen size window = new UIWindow(UIScreen.MainScreen.Bounds); runner = new TouchRunner(window); // tests can be inside the main assembly runner.Add(Assembly.GetExecutingAssembly()); runner.Add(typeof(EmbeddedResources.ResourcesTest).Assembly); runner.Add(typeof(Xamarin.BindingTests.ProtocolTest).Assembly); window.RootViewController = new UINavigationController(runner.GetViewController()); // make the window visible window.MakeKeyAndVisible(); // required for the background tasks tests, we can only register the tasks in this method BGTaskSchedulerTest.RegisterTestTasks(); return(true); }