예제 #1
0
파일: EventTest.cs 프로젝트: dfr0/moon
		public void TestBasic ()
		{
			EnqueueCompleteIfThrows (delegate ()
			{
				etc = new EventTestCanvas (this, "Event_Basic.xaml");
				etc.StartTimeout ();
				//Assert.AreEqual (123, etc.Width);
			});
		}
예제 #2
0
 public void TestRoutedEventArgs()
 {
     EnqueueCompleteIfThrows(delegate()
     {
         etc = new EventTestCanvas(this, "Event_RoutedEventArgs.xaml");
         etc.StartTimeout();
         Assert.AreEqual(123, etc.Width);
     });
 }
예제 #3
0
 public void TestBasic()
 {
     EnqueueCompleteIfThrows(delegate()
     {
         etc = new EventTestCanvas(this, "Event_Basic.xaml");
         etc.StartTimeout();
         //Assert.AreEqual (123, etc.Width);
     });
 }
예제 #4
0
파일: EventTest.cs 프로젝트: dfr0/moon
		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]");
				}
			}
		}
예제 #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]");
         }
     }
 }
예제 #6
0
파일: EventTest.cs 프로젝트: dfr0/moon
		public void TestRoutedEventArgs ()
		{
			EnqueueCompleteIfThrows (delegate ()
			{
				etc = new EventTestCanvas (this, "Event_RoutedEventArgs.xaml");
				etc.StartTimeout ();
				Assert.AreEqual (123, etc.Width);
			});
		}