matt tighe
10/17/2018, 10:59 PMval dest = File("firstfile.txt")
val target = File("somefile.txt")
target.createNewFile()
target.remainOpenTilClosed()
dest.write("test")
assertFailsWith(SomeException::class, "Could not copy to open file") {
dest.copyTo(target, overwrite = true)
}
target.close()