assertk.assertions / hasDirectChild

hasDirectChild

fun <ERROR CLASS><File>.hasDirectChild(expected: File): <ERROR CLASS>

Platform and version requirements: JVM


fun Assert<File>.hasDirectChild(expected: File): Unit

Asserts the file has the expected direct child.