public void Test_ATT_Value()
 {
     int val = 5; // TODO: Initialize to an appropriate value
     AttackCard target = new AttackCard(val); // TODO: Initialize to an appropriate value
     int expected = 5; // TODO: Initialize to an appropriate value
     int actual;
     actual = target.getValue();
     Assert.AreEqual(expected, actual);
     //Assert.Inconclusive("Verify the correctness of this test method.");
 }
 public Card PlayCard()
 {
     //Player's Turn
     int choice = UI.getInput(5);
     Card temp;
     try
     {
         temp = Player1.playCardMultiplayer(choice, Enemy);
     }
     catch (Exception)
     {
         SFX.Play("Hit");
         temp = new AttackCard(0);
     }
     Player1.draw();
     return temp;
 }
 public static Card RecieveCard(Socket handler)
 {
     UI.Write("Please wait for your opponent to play a card.");
     Card recievedCard;
     string cardInfo = null;
     byte[] bytes;
     int bytesRec;
     while (true)
     {
         bytes = new byte[1024];
         bytesRec = handler.Receive(bytes);
         cardInfo += Encoding.ASCII.GetString(bytes, 0, bytesRec);
         if (cardInfo.IndexOf("<EOF>") > -1)
         {
             break;
         }
     }
     //Everything between # and <
     int value = Convert.ToInt32((cardInfo.Substring(cardInfo.IndexOf("#") + 1, cardInfo.IndexOf("<") - cardInfo.IndexOf("#") - 1)));
     switch (cardInfo[0])
     {
         case ('0'):
             recievedCard = new AttackCard(value);
             break;
         case ('1'):
             recievedCard = new DefenceCard(value);
             break;
         case ('2'):
             recievedCard = new HealCard(value);
             break;
         default:
             recievedCard = new AttackCard(0);
             break;
     }
     return recievedCard;
 }