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