toBe

expect abstract fun toBe(expected: String): String
actual abstract fun toBe(expected: String): String
open fun toBe(expected: String, expectedLine2: String, vararg expectedOtherLines: String): String

Expects this string to be equal to the value of all its arguments concatenated by newlines.


actual abstract fun toBe(expected: String): String

Expects this string to be equal to the expected string.