Exemplo n.º 1
0
        public void Computes_Hot_Chocolate_Price()
        {
            IBeverage hotChocolate = new HotChocolate();

            hotChocolate.Price().Should().BeApproximately(1.45, 0.001);
        }
Exemplo n.º 2
0
        public void Computes_Hot_Chocolate_With_Cream_Price()
        {
            IBeverage hotChocolateWithCream = new HotChocolate(new CreamSupplement());

            hotChocolateWithCream.Price().Should().BeApproximately(1.6, 0.001);
        }
Exemplo n.º 3
0
        public void ComputesHotChocolatePrice()
        {
            var hotChocolate = new HotChocolate(_supplement);

            Assert.Equal(1.45, hotChocolate.Price(), 3);
        }