示例#1
0
        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;
        }