public void Compare_ShouldCompareSmallerSuccessfully() { var hand1 = new Hand() { Rank = HandRank.Straight }; var hand2 = new Hand() { Rank = HandRank.FullHouse }; var comparer = new HandsComparer(); var result = comparer.Compare(hand1, hand2); result.Should().Be(-1); }
public void Compare_ShouldCompareEqualSuccessfully() { var hand1 = new Hand() { Rank = HandRank.FullHouse }; var hand2 = new Hand() { Rank = HandRank.FullHouse }; var comparer = new HandsComparer(); var result = comparer.Compare(hand1, hand2); result.Should().Be(0); }