function assertListBlockStructure(block, inputCount = 0) {
    assert.equal(block.type, 'lists_create_with');
    if (inputCount === 0) {
      assert.equal(block.inputList.length, 1);
      const input = block.inputList[0];
      assert.equal(input.type, Blockly.inputs.inputTypes.DUMMY);
      assert.equal(input.name, 'EMPTY');
      assert.isNull(block.getField('MINUS'));
      // Easy way to test we're displaying empty instead of normal text.
      assert.equal(block.toString(), 'create empty list');
      return;
    }

    assert.equal(block.inputList.length, inputCount);
    for (let i = 0; i < inputCount; i++) {
      chai.assert.equal(block.inputList[i].name, 'ADD' + i);
    }
    assert.isNotNull(block.getField('MINUS'));
    // Easy way to test we're displaying normal text instead of empty.
    assert.notEqual(block.toString(), 'create empty list');
  }
Asserts that the list block has the inputs and fields we expect.
@param {!Blockly.Block} block The list block.
@param {number=} inputCount The number of inputs we expect.