public void CheckoutTest_ScanProduct_MultipleB() { //Arrange var superMarketsuperMarket = new SuperMarketsuperMarket(); superMarketsuperMarket.GenerateSuperMarketItems(); //Act superMarketsuperMarket.Scan("B"); superMarketsuperMarket.Scan("B"); //Assert Assert.Equal(45, superMarketsuperMarket.GetTotalPrice()); }
public void CheckoutTest_ScanProduct_FullProductListWithMultiples() { //Arrange var superMarketsuperMarket = new SuperMarketsuperMarket(); superMarketsuperMarket.GenerateSuperMarketItems(); //Act superMarketsuperMarket.Scan("A"); superMarketsuperMarket.Scan("A"); superMarketsuperMarket.Scan("A"); superMarketsuperMarket.Scan("B"); superMarketsuperMarket.Scan("B"); superMarketsuperMarket.Scan("C"); superMarketsuperMarket.Scan("D"); //Assert Assert.Equal(210, superMarketsuperMarket.GetTotalPrice()); }