public void ValidateBillToId_WhenBillToIdIsOver100Characters_ReturnBillToIdExceedsMaximumLengthMsg() { string billToId = new string('A', 101); string msg = BMPresenter.ValidateBillToId(billToId); Assert.That(msg, Is.EqualTo("The length of BillToID can't be over 100 characters!")); }
public void ValidateBillToId_WhenBillToIdIsValidated_ReturnEmptythMsg() { string billToId = new string('A', 99); string msg = BMPresenter.ValidateBillToId(billToId); Assert.That(msg, Is.EqualTo(string.Empty)); }
public void ValidateBillToId_WhenBillToIdIsEmptyOrNull_ReturnBillToIdEmptyMsg(string billToId) { string msg = BMPresenter.ValidateBillToId(billToId); Assert.That(msg, Is.EqualTo("BillToID can't be empty!")); }