public void CastOperator_ProductToDouble_TheFullCostOfTheProductInRubela()
        {
            Product product = new Electronics(150, "samsung s6", 5, 11);

            double expected = product.GetFullPriceOfAllProducts();

            Assert.AreEqual(expected, (double)product, 0.1);
        }
        public void GetFullPriceOfAllProductsTest_CorrectProdct_ProductPPricePlusProductMarkUpMulProductAmouunt()
        {
            Product data    = new Electronics(302.3, "Redmi Note 8", 100.8, 10);
            double  actual  = data.GetFullPriceOfAllProducts();
            double  expects = data.Amount * (data.MarkUp + data.PurchasePrice);

            Assert.AreEqual(expects, actual, 0.01);
        }
        public void CastOperator_ProductToInt_TheFullCostOfTheProductInKopecksà()
        {
            Product product = new Electronics(150, "samsung s6", 5, 11);

            int expected = (int)(product.GetFullPriceOfAllProducts() * 100);

            Assert.AreEqual(expected, (int)product);
        }