public void CategoryForOutOfBoardPlace(Int32 place) { var deck = new QuestionDeck(); var category = deck.CurrentCategoryPlace(place); Assert.Equal("Rock", category); }
public void CategoryForBoardPlace(Int32 place, String expected) { var deck = new QuestionDeck(); var category = deck.CurrentCategoryPlace(place); Assert.Equal(expected, category); }
public void AskMultipleQuestionForSameCategory() { var deck = new QuestionDeck(); deck.FillQuestions(); Assert.Equal("Pop Question 0", deck.AskCategoryQuestion("Pop")); Assert.Equal("Pop Question 1", deck.AskCategoryQuestion("Pop")); Assert.Equal("Pop Question 2", deck.AskCategoryQuestion("Pop")); }
public void QuestionForUnknownCategory() { var deck = new QuestionDeck(); deck.FillQuestions(); var question = deck.AskCategoryQuestion("unknown"); Assert.Null(question); }
public void FirstQuestionForOneCategory(String category) { var deck = new QuestionDeck(); deck.FillQuestions(); var question = deck.AskCategoryQuestion(category); Assert.Equal(category + " Question 0", question); }
public void AskMultipleQuestionsForMixedCategories() { var deck = new QuestionDeck(); deck.FillQuestions(); Assert.Equal("Pop Question 0", deck.AskCategoryQuestion("Pop")); Assert.Equal("Sports Question 0", deck.AskCategoryQuestion("Sports")); Assert.Equal("Pop Question 1", deck.AskCategoryQuestion("Pop")); Assert.Equal("Rock Question 0", deck.AskCategoryQuestion("Rock")); Assert.Equal("Sports Question 1", deck.AskCategoryQuestion("Sports")); }
public Game() { questionDeck = new QuestionDeck(); questionDeck.FillQuestions(); }