expectMessage function

void expectMessage(
  1. Message message,
  2. Message expected
)

Compares two message with their icu string version.

Implementation

void expectMessage(Message message, Message expected) {
  expect(
    messageToIcuString(message),
    messageToIcuString(expected),
  );
}