public void ShouldNotDoubleBidIfHasNotPreviousBid() { Auction auction = new AuctionGenerator().To("Macbook Pro 15").Build(); auction.DoubleBid(steveJobs); Assert.AreEqual(0, auction.Bids.Count); }
public void ShouldDoubleLastBidByUser() { Auction auction = new AuctionGenerator().To("Macbook Pro 15") .Bid(steveJobs, 2000) .Bid(billGates, 3000) .Build(); auction.DoubleBid(steveJobs); Assert.AreEqual(4000, auction.Bids[2].Value); }