Ejemplo n.º 1
0
        public void Cost_WithoutCondiments_ReturnOneDollarAndFiveCents()
        {
            var decaf = new Decaf();

            var cost = decaf.Cost();

            cost.Should().Be(1.05m);
        }
Ejemplo n.º 2
0
        public void Decaf_ShouldBeExpressoAndCostOneDollarAndFiveCents_WhenIsInstantiate()
        {
            //Arrange
            Beverage beverage = new Decaf();

            //Act
            var description = beverage.GetDescription();
            var cost        = beverage.Cost();

            //Assert
            description.Should().Be("Decaf Coffee");
            cost.Should().Be(1.05);
        }