public void ConstructDeckBuilderPluginExample() { var plug = new DeckBuilderPluginExample(); Assert.AreEqual(1,plug.MenuItems.Count()); var first = plug.MenuItems.First(); Assert.AreEqual("Random 1 Card Deck",first.Name); var controller = new DeckBuilderPluginController(); Assert.Null(controller.LoadedDeck); first.OnClick(controller); Assert.NotNull(controller.LoadedDeck); Assert.AreEqual(1,controller.LoadedDeck.CardCount); }
public void ConstructDeckBuilderPluginExample() { var plug = new DeckBuilderPluginExample(); Assert.AreEqual(1, plug.MenuItems.Count()); var first = plug.MenuItems.First(); Assert.AreEqual("Random 1 Card Deck", first.Name); var controller = new DeckBuilderPluginController(); Assert.Null(controller.LoadedDeck); first.OnClick(controller); Assert.NotNull(controller.LoadedDeck); Assert.AreEqual(1, controller.LoadedDeck.CardCount); }