public void TestBasic () { EnqueueCompleteIfThrows (delegate () { etc = new EventTestCanvas (this, "Event_Basic.xaml"); etc.StartTimeout (); //Assert.AreEqual (123, etc.Width); }); }
public void TestRoutedEventArgs() { EnqueueCompleteIfThrows(delegate() { etc = new EventTestCanvas(this, "Event_RoutedEventArgs.xaml"); etc.StartTimeout(); Assert.AreEqual(123, etc.Width); }); }
public void TestBasic() { EnqueueCompleteIfThrows(delegate() { etc = new EventTestCanvas(this, "Event_Basic.xaml"); etc.StartTimeout(); //Assert.AreEqual (123, etc.Width); }); }
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]"); } } }
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]"); } } }
public void TestRoutedEventArgs () { EnqueueCompleteIfThrows (delegate () { etc = new EventTestCanvas (this, "Event_RoutedEventArgs.xaml"); etc.StartTimeout (); Assert.AreEqual (123, etc.Width); }); }