# File lib/ruby-vpi.rb, line 51
  def RubyVPI.load_test aDesignHandleOrPath, *aTestFilePaths
    design =
      if aDesignHandleOrPath.is_a? VPI::Handle
        aDesignHandleOrPath
      else
        VPI.vpi_handle_by_name(aDesignHandleOrPath.to_s, nil)
      end

    raise ArgumentError, "cannot access the design under test: #{aDesignHandleOrPath.inspect}" unless design

    sandbox = Module.new
    sandbox.const_set :DUT, design

    aTestFilePaths.flatten.compact.uniq.each do |path|
      sandbox.module_eval(File.read(path), path)
    end

    sandbox
  end