Beispiel #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);
        }
Beispiel #2
0
        public void GetCardFactionTest_Invalid()
        {
            //arrange
            AbstractCard test_card       = new DEBUG_Card("ThisIsACardNameWow", AbstractCard.CardRarity.Common, AbstractCard.CardType.Attack, AbstractCard.CardTarget.All, 2, "DEBUG_CARD");
            string       expected_result = "";
            //act
            string actual_result = CardIDUtilities.GetCardFaction(test_card);

            //assert
            Assert.AreEqual(actual_result, expected_result);
        }
Beispiel #3
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);
        }
Beispiel #4
0
        public void GetCardFactionTest()
        {
            //arrange
            AbstractCard test_card       = new Punch();
            string       expected_result = "Basic";
            //act
            string actual_result = CardIDUtilities.GetCardFaction(test_card);

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