public async Task PlayerCheckForMatchAsyncFailsWhenCentralPileIsEmpty() { // Arrange var hand = new SnapHand(); var player = new SnapPlayer("Player 1", hand); var centralPile = new SnapCentralPile(); // Act var test = await player.CheckForMatchAsync(centralPile); // Assert Assert.IsFalse(test); }
public async Task PlayerCheckForMatchAsyncFailsWhenNotPresent() { // Arrange var hand = new SnapHand(); var player = new SnapPlayer("Player 1", hand); var centralPile = new SnapCentralPile(); centralPile.Add(new SnapCard(Suit.Hearts, Rank.Queen)); centralPile.Add(new SnapCard(Suit.Clubs, Rank.King)); // Act var test = await player.CheckForMatchAsync(centralPile); // Assert Assert.IsFalse(test); }