Testing LettersValidator: "Hello" is valid: true "Hello123" is valid: false "123" is valid: false Testing ZipCodeValidator: "12345" is valid: true "1234" is valid: false "ABCDE" is valid: false In TypeScript, you cannot access non-exported members: // Validation.lettersRegexp would be an error