Example #1
0
		public void TestBasic ()
		{
			EnqueueCompleteIfThrows (delegate ()
			{
				etc = new EventTestCanvas (this, "Event_Basic.xaml");
				etc.StartTimeout ();
				//Assert.AreEqual (123, etc.Width);
			});
		}
Example #2
0
 public void TestRoutedEventArgs()
 {
     EnqueueCompleteIfThrows(delegate()
     {
         etc = new EventTestCanvas(this, "Event_RoutedEventArgs.xaml");
         etc.StartTimeout();
         Assert.AreEqual(123, etc.Width);
     });
 }
Example #3
0
 public void TestBasic()
 {
     EnqueueCompleteIfThrows(delegate()
     {
         etc = new EventTestCanvas(this, "Event_Basic.xaml");
         etc.StartTimeout();
         //Assert.AreEqual (123, etc.Width);
     });
 }
Example #4
0
		private void EnqueueCompleteIfEtcIsNull (Action action)
		{
			try {
				Console.WriteLine ("EnqueueCompleteIfEtcIsNull");
				etc = null;
				action ();
			} catch (Exception ex) {
				Console.WriteLine ("EnqueueCompleteIfEtcIsNull: {0}", ex.Message);
				throw;
			} finally {
				if (etc == null) {
					Console.WriteLine ("EnqueueCompleteIfEtcIsNull: EnqueueTestComplete ()");
					EnqueueTestComplete ();
				} else {
					etc.StartTimeout ();
					Console.WriteLine ("EnqueueCompleteIfEtcIsNull [Done]");
				}
			}
		}
Example #5
0
 private void EnqueueCompleteIfEtcIsNull(Action action)
 {
     try {
         Console.WriteLine("EnqueueCompleteIfEtcIsNull");
         etc = null;
         action();
     } catch (Exception ex) {
         Console.WriteLine("EnqueueCompleteIfEtcIsNull: {0}", ex.Message);
         throw;
     } finally {
         if (etc == null)
         {
             Console.WriteLine("EnqueueCompleteIfEtcIsNull: EnqueueTestComplete ()");
             EnqueueTestComplete();
         }
         else
         {
             etc.StartTimeout();
             Console.WriteLine("EnqueueCompleteIfEtcIsNull [Done]");
         }
     }
 }
Example #6
0
		public void TestRoutedEventArgs ()
		{
			EnqueueCompleteIfThrows (delegate ()
			{
				etc = new EventTestCanvas (this, "Event_RoutedEventArgs.xaml");
				etc.StartTimeout ();
				Assert.AreEqual (123, etc.Width);
			});
		}