orangy
fun fileManipulationCode(file: File) {
when (file.deleteRecursively()) {
true -> reportSuccess()
false -> doSomethingElse()
}
}
then you can test doSomethingElse
separately.Shawn
05/03/2018, 8:26 PMorangy
rrader
05/04/2018, 11:27 AM