public void Test_ValidateIsin() { // Arrange string message; const string isin = "AB1234"; //Act var isValid = CompanyValidator.ValidateIsin(isin, out message); //Assert Assert.IsTrue(isValid); }
public void Test_ValidateIsin_returnErroMessage() { // Arrange string message; const string isin = "A1234"; //Act var isValid = CompanyValidator.ValidateIsin(isin, out message); //Assert Assert.IsFalse(isValid); Assert.AreEqual(CompanyValidator.IsinErrorMessage, message, nameof(message)); }