Example #1
0
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

			Shared = this;

			var asm = Assembly.GetExecutingAssembly ();
			Title = asm.GetName ().Name;

			ListAdapter = new FixtureAdapter (
				this,
				from t in asm.GetTypes ()
				where t.GetCustomAttributes (typeof (global::NUnit.Framework.TestFixtureAttribute), true).Length > 0
				orderby t.FullName
				select t);

			ListView.ItemClick += (s, e) => {
				var f = ((FixtureAdapter)ListAdapter)[e.Position];
				var i = new Intent (this, typeof(FixtureActivity));
				i.PutExtra ("FixtureFullName", f.FullName);
				StartActivity (i);
			};
		}
Example #2
0
			public FixtureAdapter (TestRunner activity, IEnumerable<Type> fixtures)
			{
				this.activity = activity;
				this.fixtures = fixtures.ToList ();
			}