testSession
fun testSession(size: TerminalSize? = null, suppressSectionExceptions: Boolean = false, block: Session.(InMemoryTerminal) -> Unit)(source)
Like a session block but backed by a InMemoryTerminal, which is provided as a lambda argument.
The InMemoryTerminal is a useful way to assert that various Kotter commands resulted in expected behavior.
Parameters
suppressSectionExceptions
If true (the default), then this function will assert that no render exceptions were thrown during the session.