Exemplo n.º 1
0
        public void TotalOfferPrice_Success(int qty, double offerPrice, double expectedResult)
        {
            //Arrange
            _sut = new Discount
            {
                Qty           = qty,
                PricePerOffer = offerPrice,
            };

            //Act
            var result = _sut.TotalOfferPrice();

            //Assert
            result.Should().Be(expectedResult);
        }