예제 #1
0
        public void UpdateMagicCardPrice()
        {
            var m = new MagicCard("Garruk Wildspeaker", "Lorwyn", 8.5);

            m.UpdatePrice(6.5);
            Assert.IsTrue(m.Price == 6.5);
        }
예제 #2
0
 public void EmptyEdition()
 {
     Assert.Catch(() =>
     {
         var m = new MagicCard("Garruk Wildspeaker", "", 8.5);
     });
 }
예제 #3
0
 public void NegativePrice()
 {
     Assert.Catch(() =>
     {
         var m = new MagicCard("Garruk Wildspeaker", "Lorwyn", -8.5);
     });
 }
예제 #4
0
 public void EmptyName()
 {
     Assert.Catch(() =>
     {
         var m = new MagicCard(null, "Lorwyn", 8.5);
     });
 }
예제 #5
0
        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);
        }