@@ -110,23 +110,29 @@ public void ValidateProfessionalRegistrationNumber_sets_error_when_hasPrn_is_not
110110 [ TestCase ( "1234" , "Professional registration number must be between 5 and 20 characters" ) ]
111111 [ TestCase (
112112 "01234_" ,
113- "Invalid professional registration number format. Accepted formats are: 1–2 letters followed by 6 digits (e.g., AB123456)" +
114- " 4–8 digits only " + "Optional ‘P’ followed by 5–6 digits ‘C’ or ‘P’ followed by 6 digits " +
115- "Optional letter followed by 5–6 digits ‘L’ followed by 4–6 digits 2 digits, hyphen, then 4–5 alphanumeric characters"
113+ "Invalid professional registration number format. " +
114+ "Valid formats include: 7 digits (e.g., 1234567), 1–2 letters followed by 6 digits (e.g., AB123456), " +
115+ "4–8 digits, an optional 'P' plus 5–6 digits, 'C' or 'P' plus 6 digits, " +
116+ "an optional letter plus 5–6 digits, 'L' plus 4–6 digits, " +
117+ "or 2 digits followed by a hyphen and 4–5 alphanumeric characters (e.g., 12-AB123)."
116118
117119 ) ]
118120 [ TestCase (
119121 "01234 " ,
120- "Invalid professional registration number format. Accepted formats are: 1–2 letters followed by 6 digits (e.g., AB123456)" +
121- " 4–8 digits only " + "Optional ‘P’ followed by 5–6 digits ‘C’ or ‘P’ followed by 6 digits " +
122- "Optional letter followed by 5–6 digits ‘L’ followed by 4–6 digits 2 digits, hyphen, then 4–5 alphanumeric characters"
122+ "Invalid professional registration number format. " +
123+ "Valid formats include: 7 digits (e.g., 1234567), 1–2 letters followed by 6 digits (e.g., AB123456), " +
124+ "4–8 digits, an optional 'P' plus 5–6 digits, 'C' or 'P' plus 6 digits, " +
125+ "an optional letter plus 5–6 digits, 'L' plus 4–6 digits, " +
126+ "or 2 digits followed by a hyphen and 4–5 alphanumeric characters (e.g., 12-AB123)."
123127
124128 ) ]
125129 [ TestCase (
126130 "01234$" ,
127- "Invalid professional registration number format. Accepted formats are: 1–2 letters followed by 6 digits (e.g., AB123456)" +
128- " 4–8 digits only " + "Optional ‘P’ followed by 5–6 digits ‘C’ or ‘P’ followed by 6 digits " +
129- "Optional letter followed by 5–6 digits ‘L’ followed by 4–6 digits 2 digits, hyphen, then 4–5 alphanumeric characters"
131+ "Invalid professional registration number format. " +
132+ "Valid formats include: 7 digits (e.g., 1234567), 1–2 letters followed by 6 digits (e.g., AB123456), " +
133+ "4–8 digits, an optional 'P' plus 5–6 digits, 'C' or 'P' plus 6 digits, " +
134+ "an optional letter plus 5–6 digits, 'L' plus 4–6 digits, " +
135+ "or 2 digits followed by a hyphen and 4–5 alphanumeric characters (e.g., 12-AB123)."
130136
131137 ) ]
132138 public void ValidateProfessionalRegistrationNumber_sets_error_when_prn_is_invalid (
0 commit comments