withFragment
inline fun <F : Fragment, T : Any> HiltFragmentScenario<F>.withFragment(crossinline block: F.() -> T): T
Run block using HiltFragmentScenario.onFragment, returning the result of the block.
If any exceptions are raised while running block, they are rethrown.