Exemplo n.º 1
0
		public static TestSuite Load (Assembly assembly)
		{
			AsyncTestSuite suite = new AsyncTestSuite (new AssemblyName (assembly.FullName).Name);
			
			foreach (Type type in assembly.GetTypes ()) {
				if (IsTestFixture (type))
					suite.AddTest (new AsyncTestFixture (suite, type));
			}
			
			return suite;
		}
Exemplo n.º 2
0
		TestResult Run (AsyncTestSuite suite)
		{
			suite.BeginInvokeHandler = BeginInvoke;
			suite.CompletedEvent += (sender, e) => 
			{
				quit = true;
				callback_event.Set ();
			};
			suite.RunAsync (listener);
			MainLoop ();
			return suite.Result;
		}