public void UpdateMagicCardPrice() { var m = new MagicCard("Garruk Wildspeaker", "Lorwyn", 8.5); m.UpdatePrice(6.5); Assert.IsTrue(m.Price == 6.5); }
public void EmptyEdition() { Assert.Catch(() => { var m = new MagicCard("Garruk Wildspeaker", "", 8.5); }); }
public void NegativePrice() { Assert.Catch(() => { var m = new MagicCard("Garruk Wildspeaker", "Lorwyn", -8.5); }); }
public void EmptyName() { Assert.Catch(() => { var m = new MagicCard(null, "Lorwyn", 8.5); }); }
public void CreateMagicCard() { var m = new MagicCard("Garruk Wildspeaker", "Lorwyn", 8.5); Assert.IsTrue(m.Name == "Garruk Wildspeaker"); Assert.IsTrue(m.Edition == "Lorwyn"); Assert.IsTrue(m.Price == 8.5); }