public void UniversalSocialChargeIsCalculatedProperlyForProperData(decimal hours, decimal rate, decimal expected) { // Arrange var sut = new ItalySalaryCalculator { GrossAmount = hours * rate }; // Act var result = sut.CalculateUniversalSocialCharge(); // Assert Assert.AreEqual(expected, result); }
public void UniversalSocialChargeIsEqualZeroWhenHoursOrRateIsNegative(decimal hours, decimal rate) { // Arrange var sut = new ItalySalaryCalculator { GrossAmount = hours * rate }; decimal expected = 0; // Act var result = sut.CalculateUniversalSocialCharge(); // Assert Assert.AreEqual(expected, result); }