public void KnowAboutNominalOrColor_Default_ReturnsFalse() { IGameProvider gameProvider = GameProviderFabric.Create(Color.Red, Color.Yellow); Guess guess = new Guess( gameProvider, CreateCardInHand(gameProvider, new Card(Color.Red, Rank.Two))); bool result = guess.KnowAboutRankOrColor(); Assert.IsFalse(result); }
public void KnowAboutNominalOrColor_NotAnyColorsExceptRed_ReturnsTrue() { IGameProvider gameProvider = GameProviderFabric.Create(Color.Red, Color.Yellow); var redTwoCardInHand = CreateCardInHand(gameProvider, new Card(Color.Red, Rank.Two)); var cardsToClue = new[] { redTwoCardInHand }; Guess guess = new Guess(gameProvider, redTwoCardInHand); guess.Visit(new ClueAboutNotColor(Color.Yellow)); bool result = guess.KnowAboutRankOrColor(); Assert.IsTrue(result); }