The principle
For a numeric boundary, try the value just below, exactly at and just above it. Include the inputs a user can actually supply. When the rule changes an input before testing it, run the cases against the changed value. Give each test a named expected result.
Work through an example
A ticket rule accepts cleaned titles of at least 10 characters. ‘Printer 1’ has nine and fails. ‘Printer 01’ has ten and passes. ‘Printer 001’ has eleven and passes. Extra outside spaces should not rescue the nine-character title. A missing title should get a clear error.