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