Пример #1
0
 public void BehavioralTest()
 {
     Menu menu = new Menu(XDocument.Load("Menu.xml"));
     Assert.IsTrue(menu.CurrentMenuLevel == menu);
     var pushingItem = menu.NestedItems[0];
     menu.Push(pushingItem);
     Assert.IsTrue(menu.CurrentMenuLevel == pushingItem);
     menu.Prev();
     Assert.IsTrue(menu.CurrentMenuLevel == menu);
 }
Пример #2
0
 public void CreationalTest()
 {
     Menu menu = new Menu(XDocument.Load("Menu.xml"));
 }