Пример #1
0
        public void ShouldCalculatePrice(int weight, double ratio, double meatPercent, Diet diet, double expected)
        {
            var prices = new Prices(2, 3);
            var type   = new AnimalType("", ratio, diet, meatPercent);
            var price  = type.CalculatePrice(weight, prices);

            Assert.Equal(expected, price);
        }