public void GetNewDeckTest() { DeckManager.ImportDecksFromJson(); int count_orig = DeckManager.getDeckList().Count; Deck newDeck = DeckManager.CreateNewDeck(); int count_new = DeckManager.getDeckList().Count; Assert.IsNotNull(newDeck); Assert.IsInstanceOfType(newDeck, typeof(Deck)); Assert.AreEqual(count_new, count_orig + 1); }
private void createDeckButton_Click(object sender, EventArgs e) { deckManager.CreateNewDeck(createText.Text); }