Exemple #1
0
        public void CreateCard_Should_CreateInstanceOfCard_When_GivenDifferentId()
        {
            const string cardId       = "way-of-the-dragon";
            var          instantiator = new CardInstantiator();

            var card = instantiator.CreateCard(cardId);

            card.GetType().Should().Be(typeof(WayOfTheDragonCard));
            card.CardId.Should().Be(cardId);
        }
Exemple #2
0
        public void CreateCard_Should_CreateInstanceOfCard_When_GivenId()
        {
            const string cardId       = "way-of-the-phoenix";
            var          instantiator = new CardInstantiator();

            var card = instantiator.CreateCard(cardId);

            card.GetType().Should().Be(typeof(WayOfThePhoenixCard));
            card.CardId.Should().Be(cardId);
        }