expectApiNotCalled method

void expectApiNotCalled(
  1. String apiName
)

Implementation

void expectApiNotCalled(String apiName) {
  final count = context.apiOverlay.callCount(apiName);
  if (count != 0) {
    throw EnsembleTestFailure(
      'Expected API "$apiName" not to be called, but it was called $count times.',
    );
  }
}