doc / ch.tutteli.atrium.api.infix.en_GB / hasSameTextualContentAs

hasSameTextualContentAs

infix fun <T : Path> Expect<T>.hasSameTextualContentAs(targetPath: Path): Expect<T> (source)
Deprecated: Use toHaveTheSameTextualContentAs; will be removed with 1.0.0 at the latest

Expects that the subject of this expectation (a Path) has the same textual content as targetPath (using UTF-8 for encoding)

Return
an Expect for the subject of this expectation.

Since
0.13.0

infix fun <T : Path> Expect<T>.hasSameTextualContentAs(pathWithEncoding: PathWithEncoding): Expect<T> (source)
Deprecated: Use toHaveTheSameTextualContentAs; will be removed with 1.0.0 at the latest

Expects that the subject of this expectation (a Path) has the same textual content as PathWithEncoding.path in the given pathWithEncoding with the specified encodings.

Use the function withEncoding(Path, Charset, Charset) to create a PathWithEncoding.

Return
an Expect for the subject of this expectation.

Since
0.13.0