public void packageBidCarichiAckTest() { BidBase b = new CarichiBid(Board.Instance.Me, 61); PackageBid pkgb = new PackageBid(b); byte [] bs = pkgb.getAckMessage(); PackageBid pkgbRec = new PackageBid(PackageBase.getMessageFromAck(bs)); Assert.AreEqual(EnPackageType.BID, pkgb.type); Assert.AreSame(Board.Instance.Me, pkgb.bid.bidder); Assert.True(b.Equals(pkgbRec.bid)); }
public void packageBidPassAckTest() { BidBase b = new PassBid(Board.Instance.Me); PackageBid pkgb = new PackageBid(b); byte [] bs = pkgb.getAckMessage(); PackageBid pkgbRec = new PackageBid(PackageBase.getMessageFromAck(bs)); Assert.AreEqual(EnPackageType.BID, pkgb.type); Assert.AreSame(Board.Instance.Me, pkgb.bid.bidder); Assert.AreEqual(b, pkgbRec.bid); }