public void BuildMenuItemsTest() { try { Assert.False(securityPlugin.BuildMenuItems().Any( m => (m.Text == "Security") && (m.Controller == "Security") && (m.Action == "Index"))); } catch (TypeInitializationException) { } }
public void SecurityPluginBuildMenuTest() { Menu menu = new Menu(); SecurityPlugin plugin = new SecurityPlugin(); menu.Add(plugin.BuildMenuItems()); Assert.AreEqual(menu.Items.Count(), 1); //Assert.That(menu.Items[0].Text == "Security"); //Assert.That(menu.Items[0].Controller == "Security"); //Assert.That(menu.Items[0].Action == "Index"); }
public void SecurityPluginBuildMenuTest() { Menu menu = new Menu(); SecurityPlugin plugin = new SecurityPlugin(); menu.Add(plugin.BuildMenuItems()); Assert.AreEqual(menu.Items.Count(), 1); //Assert.That(menu.Items[0].Text == "Security"); //Assert.That(menu.Items[0].Controller == "Security"); //Assert.That(menu.Items[0].Action == "Index"); }