public void ProductBTestTotalPrice_Returns_Zero_OnNoProduct() { //Arrange List <Product> products = new List <Product>(); //Assert var value = new ProductB <List <Product> >(products).CalculateProductPrice(); //Act value.Equals(0); }
public void ProductBTestTotalPrice_Returns_Promotion_Price() { //Arrange List <Product> products = new List <Product>(); products.Add(new Product("B", 2)); //Assert var value = new ProductB <List <Product> >(products).CalculateProductPrice(); //Act value.Equals(45); }