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