public void FDReferenceTypeALPassesValidReferenceTypes() { var model = new SupplementaryDataLooseModel { ReferenceType = new string('1', 20) }; var rule = new FDReferenceTypeAL(); Assert.True(rule.Execute(model)); }
public void FDReferenceTypeALCatchesTooLongReferenceTypes() { var model = new SupplementaryDataLooseModel { ReferenceType = new string('1', 21) }; var rule = new FDReferenceTypeAL(); Assert.False(rule.Execute(model)); }