private void CheckIsValid(ValuePerWeightUnits units, decimal amount)
{
if (!canHaveNegativeAmount && amount < 0)
{
throw new InvalidOperationException("The amount cannot be negative");
}
if (units == default(ValuePerWeightUnits))
{
throw new InvalidOperationException("Units cannot be the default value");
}
}
}