Пример #1
0
        public void ProductATestTotalPrice_Returns_Zero_OnNoProduct()
        {
            //Arrange
            List <Product> products = new List <Product>();

            //Assert
            var value = new ProductA <List <Product> >(products).CalculateProductPrice();

            //Act
            value.Equals(0);
        }
Пример #2
0
        public void ProductBTestTotalPrice_Returns_NonPromotion_Price()
        {
            //Arrange
            List <Product> products = new List <Product>();

            products.Add(new Product("B", 1));
            //Assert
            var value = new ProductA <List <Product> >(products).CalculateProductPrice();

            //Act
            value.Equals(30);
        }