public void VisitAllMenus() { if (m_window.Mediator == null) { ReopenWindow(); // A previously run test had closed it, so the mediator was gone. } ITestableUIAdapter adapter = (ITestableUIAdapter)m_window.MenuAdapter; adapter.ClickOnEverything(); }
[Test] //[Ignore("Temporary for the sake of NUnit 2.2")] public void VisitAllMenus() { if (m_window.Mediator == null) { ReopenWindow(); // A previously run test had closed it, so the mediator was gone. } ITestableUIAdapter adapter = (ITestableUIAdapter)m_window.MenuAdapter; adapter.ClickOnEverything(); // foreach(MenuItem menu in m_window.Menu.MenuItems) // { // VisitMenu(menu); // } }