Beispiel #1
0
        public void BidManagerTest()
        {
            Assert.Equal(new Bid(1, Suit.Hearts), BidManager.GetBid(3));
            Assert.Equal(new Bid(1, Suit.NoTrump), BidManager.GetBid(5));
            Assert.Equal(new Bid(2, Suit.NoTrump), BidManager.GetBid(10));

            Assert.Equal(3, BidManager.GetBidId(new Bid(1, Suit.Hearts)));
            Assert.Equal(10, BidManager.GetBidId(new Bid(2, Suit.NoTrump)));

            Assert.Equal(new Bid(1, Suit.Spades), BidManager.NextBid(new Bid(1, Suit.Hearts)));
            Assert.Equal(new Bid(2, Suit.Clubs), BidManager.NextBid(new Bid(1, Suit.NoTrump)));
        }
Beispiel #2
0
 public BidManager.BidInfo GetBid([PexAssumeUnderTest] BidManager target)
 {
     BidManager.BidInfo result = target.GetBid();
     return(result);
     // TODO: add assertions to method BidManagerTest.GetBid(BidManager)
 }