예제 #1
0
파일: Bid_Test.cs 프로젝트: marcusber/Cards
        public void DoubleOneClubIsGreaterThanOneClub()
        {
            BidTrumph oneClub = new BidTrumph(TrumphSuite.Clubs, 1);
            BidDouble bidDouble = new BidDouble(oneClub);

            Assert.IsTrue(oneClub.IsHigherBid(bidDouble));
            Assert.IsFalse(bidDouble.IsHigherBid(oneClub));
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BidReDouble"/> class.
        /// </summary>
        /// <param name="previousBid">The previous bid.</param>
        public BidReDouble(BidDouble previousBid)
            : base(BidType.Redouble)
        {
            if (previousBid == null)
            {
                throw new ArgumentNullException("previousBid");
            }

            this.Doubled = previousBid;
        }