public void Show(Exception ex) { IExceptionViewModel viewModel = m_exceptionViewModelFactory.Create(ex); var window = new UnhandledExceptionWindow(viewModel); window.Show(); }
public void ShowUpTest() { UnhandledExceptionWindow window = CreateWindow(Exception <Exception>()); try { window.Show(); window.DoDispatcherLoop(); } finally { window.Close(); } }
public void Test2() { Exception e = ExceptionWithInner <InvalidOperationException>(); UnhandledExceptionWindow window = CreateWindow(e); try { window.Show(); Assert.AreEqual("Exception", window.ExceptionNameTextBlock.Text); AssertWithPattern(@"^Message:.*Call stack.*Inner Exception: InvalidOperationException.*Message:.*Call stack:.*", window.ExceptionDetailsTextBlock.Text); } finally { window.Close(); } }