fun <ERROR CLASS><File>.hasExtension(expected: String): Unit
Platform and version requirements: JVM
fun Assert<File>.hasExtension(expected: String): Unit
Asserts the file has the expected extension.