function verifyTestOutcomeForFailOnUnreportedAssertsFlag(
    shouldPassWithFlagEnabled, testFunction) {
  return verifyWithFlagEnabledAndNoInvalidation(testFunction).then(function() {
    return verifyWithFlagEnabled(testFunction, shouldPassWithFlagEnabled);
  });
}
Verifies that:
<ol>
<li>when the `failOnUnreportedAsserts` flag is disabled, the test
    function passes;
<li>when the `failOnUnreportedAsserts` flag is enabled, the test
    function passes if `shouldPassWithFlagEnabled` is true and fails if
    it is false; and that
<li>when the `failOnUnreportedAsserts` flag is enabled, and in addition
    `invalidateAssertionException` is stubbed out to do nothing, the
    test function fails.
</ol>
@param {boolean} shouldPassWithFlagEnabled
@param {function(): !GoogPromise} testFunction
@return {!GoogPromise}