public void BuyBook_OnetypeTwoBook_ShouldBe200() { var bookStroe = new BookStore(); int exceptedPrice = 200; int actuallPrice = bookStroe.BuyBook(new Dictionary <int, int> { [1] = 2, }); Assert.AreEqual(exceptedPrice, actuallPrice); }
public void BuyBook_TwotypeThreeBook_ShouldBe290() { var bookStroe = new BookStore(); int exceptedPrice = 290; int actuallPrice = bookStroe.BuyBook(new Dictionary <int, int> { [1] = 2, [2] = 1 }); Assert.AreEqual(exceptedPrice, actuallPrice); }
public void BuyBook_ThreetypeOneBook_ShouldBe270() { var bookStroe = new BookStore(); int exceptedPrice = 270; int actuallPrice = bookStroe.BuyBook(new Dictionary <int, int> { [1] = 1, [2] = 1, [3] = 1, }); Assert.AreEqual(exceptedPrice, actuallPrice); }
public void BuyBook_SixtypeSixBook_ShouldBe450() { var bookStroe = new BookStore(); int exceptedPrice = 450; int actuallPrice = bookStroe.BuyBook(new Dictionary <int, int> { [1] = 1, [2] = 1, [3] = 1, [4] = 1, [5] = 1, [6] = 1 }); Assert.AreEqual(exceptedPrice, actuallPrice); }