2 using System.Collections.Generic;
5 using MonoTouch.Foundation;
7 using MonoTouch.NUnit.UI;
11 // The UIApplicationDelegate for the application. This class is responsible for launching the
12 // User Interface of the application, as well as listening (and optionally responding) to
13 // application events from iOS.
14 [Register ("AppDelegate")]
15 public partial class AppDelegate : UIApplicationDelegate
17 // class-level declarations
22 // This method is invoked when the application has loaded and is ready to run. In this
23 // method you should instantiate the window, load the UI into it and then make the window
26 // You have 17 seconds to return from this method, or iOS will terminate your application.
28 public override bool FinishedLaunching (UIApplication app, NSDictionary options)
30 // create a new window instance based on the screen size
31 window = new UIWindow (UIScreen.MainScreen.Bounds);
32 runner = new TouchRunner (window);
34 // register every tests included in the main application/assembly
35 runner.Add (System.Reflection.Assembly.GetExecutingAssembly ());
37 window.RootViewController = new UINavigationController (runner.GetViewController ());
39 // make the window visible
40 window.MakeKeyAndVisible ();