Assert

open fun Assert(condition: Boolean)

Throws an assert if the given condition is not met.

Parameters

condition

If this condition is NOT true the assertion will throw an assert exception


open fun Assert(condition: Boolean, @NonNull message: String)

Throws an assert if the given condition is not met.

Parameters

condition

If this condition is NOT true the assertion will throw an assert exception

message

The message to show if this assertion is executed