public void WhenLinhaDigitavelLengthIsGreaterThan47ThenGenerateBarCodeTextShouldThrowArgumentOutOfRangeException() { Assert.ThrowsException <ArgumentOutOfRangeException>(() => BoletoUtil.GenerateBarCodeText(new string('0', 48))); }
public void WhenLinhaDigitavelLengthIsLessThan47ThenGenerateBarCodeTextShouldThrowArgumentOutOfRangeException() { Assert.ThrowsException <ArgumentOutOfRangeException>(() => BoletoUtil.GenerateBarCodeText("1234567890")); }
public void WhenLinhaDigitavelIsNullThenGenerateBarCodeTextShouldThrowArgumentNullException() { Assert.ThrowsException <ArgumentNullException>(() => BoletoUtil.GenerateBarCodeText(null)); }