You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: map_test.rb
    path of file: ./repos/u-case/test/micro/cases
    
    the code of the file until where you have to start completion: require 'test_helper'

class Micro::Cases::MapTest < Minitest::Test
  def test_invalid_types_should_raise_an_exception
    [nil, 1, true, '', {}].each do |arg|
      assert_raises_with_message(Kind::Error, "#{arg} expected to be a kind of Array") do
        Micr
    
  def test_invalid_array_should_raise_an_exception
    assert_raises_with_message(
      Micro::Cases::Error::InvalidUseCases,
      'argument must be a collection of `Micro::Case` classes'
    ) { Micro::Cases.map(%w[wrong params]).call(foo: 'foo') }

    # --

    assert_raises_with_message(
      Micro::Cases::Error::InvalidUseCases,
      'argument must be a collection of `Micro::Case` classes'
    ) { Micro::Cases.map([String, Integer]).call(foo: 'foo') }
  end