function assertBlockStructure(block, expectedInputs, type = 'dynamic_if') {
    assert.equal(block.type, type);
    assert.equal(block.inputList.length, expectedInputs.length);
    assert.isTrue(expectedInputs.length >= 2);
    for (let i = 0; i < expectedInputs.length; i++) {
      assert.match(block.inputList[i].name, expectedInputs[i]);
    }
  }
Asserts that the if block has the expected inputs.
@param {!Blockly.Block} block The block to check.
@param {!Array<RegExp>} expectedInputs The expected inputs.
@param {string=} type The block type expected. Defaults to 'dynamic_if'.