infix fun <ERROR CLASS>.shouldHaveDayOfMonth(day: Int): <ERROR CLASS>
Asserts that the date has the given day of month 1-31.
val date = Date(2019, 2, 15, 12, 0, 0, 0) date.shouldHaveDayOfWeek(5) // Assertion passes