public void CanIdentifyValidCreditorReferences(string creditorReference) { Assert.True(CreditorReference.IsValid(creditorReference)); var rf = CreditorReference.Parse(creditorReference); Assert.True(rf != null); }
public void CanIdentifyInvalidCreditorReferences(string creditorReference) { Assert.False(CreditorReference.IsValid(creditorReference)); Assert.Throws <FormatException>(() => CreditorReference.Parse(creditorReference)); }