public void SuitMajorSortedCardOrderingProviderNullCorrect() { // Arrange ICardOrderingProvider provider = new SuitMajorSortedCardOrderingProvider(); // Act var testKey = provider.GetSortKey(null); // Assert Assert.AreEqual(0, testKey); }
public void SuitMajorSortedCardOrderingProviderKingClubsCorrect() { // Arrange ICardOrderingProvider provider = new SuitMajorSortedCardOrderingProvider(); // Act ICard testCard = new SnapCard(Suit.Clubs, Rank.King); var testKey = provider.GetSortKey(testCard); // Assert Assert.AreEqual(52, testKey); }
public void SuitMajorSortedCardOrderingProviderFourSpadesCorrect() { // Arrange ICardOrderingProvider provider = new SuitMajorSortedCardOrderingProvider(); // Act ICard testCard = new SnapCard(Suit.Spades, Rank.Four); var testKey = provider.GetSortKey(testCard); // Assert Assert.AreEqual(4, testKey); }