public void packageBidCarichiTest() { BidBase b = new CarichiBid(Board.Instance.Me, 61); PackageBid pkgb = new PackageBid(b); byte [] bs = pkgb.getMessage(); PackageBid pkgbRec = new PackageBid(bs); Assert.AreEqual(EnPackageType.BID, pkgb.type); Assert.AreSame(Board.Instance.Me, pkgb.bid.bidder); Assert.True(b.Equals(pkgbRec.bid)); }
public void packageBidNormalTest() { BidBase b = new NormalBid(Board.Instance.Me, EnNumbers.CAVALLO, 61); PackageBid pkgb = new PackageBid(b); byte [] bs = pkgb.getMessage(); PackageBid pkgbRec = new PackageBid(bs); Assert.AreEqual(EnPackageType.BID, pkgb.type); Assert.AreSame(Board.Instance.Me, pkgb.bid.bidder); Assert.True(b.Equals(pkgbRec.bid)); }