[Test]        //[Ignore("Temporary for the sake of NUnit 2.2")]
        public void ItemCountOfListSubMenu()
        {
            ITestableUIAdapter adapter = (ITestableUIAdapter)m_window.MenuAdapter;

            Assert.AreEqual(adapter.GetItemCountOfGroup("SubVowels"), 5);
            //CheckSubMenuCount("Type", "Vowels",5);
        }
Beispiel #2
0
        public void ZCreateUIfromStream()
        {
            Assembly assembly = Assembly.GetExecutingAssembly();

            System.IO.Stream stream =
                assembly.GetManifestResourceStream("XCore.basicTest.xml");
            Assert.IsNotNull(stream, "Couldn't get the XML file.");

            XCore.XWindow window = new XWindow();
            window.LoadUI(stream);

            ITestableUIAdapter adapter = (ITestableUIAdapter)window.MenuAdapter;

            Assert.AreEqual(adapter.GetItemCountOfGroup("Vowels"), 5);
        }