public static assertThrows<TYPE = Exception>(block as Object) as Void:
Verifies that executing the lambda raises an exception.
When TYPE is omitted, any exception type is accepted. When TYPE is provided, the raised exception must match it.
TYPE