Пример #1
0
        public void IsValidCardIDTest_InvalidString()
        {
            //arrange
            AbstractCard test_card       = new DEBUG_Card("ThisIsACardNameWow", AbstractCard.CardRarity.Common, AbstractCard.CardType.Attack, AbstractCard.CardTarget.All, 2, "DEBUG_CARD");
            bool         expected_result = false;
            //act
            bool actual_result = CardIDUtilities.IsValidCardID(test_card);

            //assert
            Assert.AreEqual(actual_result, expected_result);
        }
Пример #2
0
        public void IsValidCardIDTest_Valid()
        {
            //arrange
            AbstractCard test_card       = new Punch();
            bool         expected_result = true;
            //act
            bool actual_result = CardIDUtilities.IsValidCardID(test_card);

            //assert
            Assert.AreEqual(actual_result, expected_result);
        }