public void should_get_20_precent_discount_on_cost() { //Arrange var sut = new LongTermDiscounter() as ILongTermDiscounter; //Act var discountedAmount = sut.Discount(4, 10.0); //Assert discountedAmount.Should().Be(8); }
public void should_not_discount() { //Arrange var sut = new LongTermDiscounter() as ILongTermDiscounter; //Act var discountedAmount = sut.Discount(2, 10.0); //Assert discountedAmount.Should().Be(10); }