public void Will_Throw_When_CalculationDirection_Unknown() { var taxInfo = new TaxInfo("23%", 0.23m); Should.Throw <InvalidOperationException>( () => taxInfo.GetGrossValue(CalculationDirection.Unknown, 100)); }
public void Will_Return_Gross_Value(decimal value, decimal multiplier, CalculationDirection direction, decimal expected) { var taxInfo = new TaxInfo("test", multiplier); taxInfo.GetGrossValue(direction, value).ShouldBe(expected); }