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