Exemplo n.º 1
0
        public void GivenChocolateSelectionShouldGenerateChocolateOrder()
        {
            // Arrange
            _drinkBuilder.SelectDrink(new Chocolate());

            // Act
            string result = _drinkBuilder.GetOrder();

            // Assert
            Assert.Equal("H::", result);
        }
Exemplo n.º 2
0
        public void GivenAddOneSugarShouldHaveOneSugarPlusStick()
        {
            // Arrange
            _drinkBuilder.SelectDrink(new Coffee());
            _drinkBuilder.AddSugar();

            // Act
            var result = _drinkBuilder.GetOrder();

            // Assert
            Assert.Equal("C:1:0", result);
        }