public void ValidSedols(string sedol) { var actual = new SedolValidate().ValidateSedol(sedol); var expected = new SedolValidationResult(sedol, true, false, null); AssertValidationResult(expected, actual); }
public void SedolsWithIncorrectChecksum(string sedol) { var actual = new SedolValidate().ValidateSedol(sedol); var expected = new SedolValidationResult(sedol, false, false, Constants.CHECKSUM_NOT_VALID); AssertValidationResult(expected, actual); }
public void SedolsContainingInvalidCharacters(string sedol) { var actual = new SedolValidate().ValidateSedol(sedol); var expected = new SedolValidationResult(sedol, false, false, Constants.SEDOL_CONTAINS_INVALID_CHARACTERS); AssertValidationResult(expected, actual); }
public void UserDefinedSedolsWithCorrectChecksum(string sedol) { var actual = new SedolValidate().ValidateSedol(sedol); var expected = new SedolValidationResult(sedol, true, true, null); AssertValidationResult(expected, actual); }
public void SedolsNotSevenCharacters(string sedol) { var actual = new SedolValidate().ValidateSedol(sedol); var expected = new SedolValidationResult(sedol, false, false, Constants.INPUT_STRING_NOT_VALID_LENGTH); AssertValidationResult(expected, actual); }