fun expectSpec(block: ExpectSpecTestFactoryConfiguration.() -> Unit): TestFactory
Creates a TestFactory from the given block.
The receiver of the block is a ExpectSpecTestFactoryConfiguration which allows tests to be defined using the 'expect-spec' style.