public void CardGeneratorRandom_ShuffleCardsList_ReturnShuffledList() { Cards.CardGenerator cardGenerator = new CardGeneratorRandom(10); var cardList = cardGenerator.GetShuffledCardsList(1000); Assert.IsFalse(cardList.CardListIsCorrectChain()); }
public void DictionaryChainListSorting_TryToOrderShuffledCardsList_ReturnOrderedCardsList() { const int cardQuantity = 1000; const int cityNameLength = 10; Cards.CardGenerator cardGenerator = new CardGeneratorRandom(cityNameLength); var cardList = cardGenerator.GetShuffledCardsList(cardQuantity); ICardListSorting cardListSorting = new DictionaryChainListSorting(); Assert.IsTrue(cardListSorting.GetOrderedCardsList(cardList).CardListIsCorrectChain()); }
public void GlobalSetup() { CardShuffledList = new CardGeneratorRandom(10).GetShuffledCardsList(CardQuantity); }