# runMapAdapterContract

Runs the shared behavioural suite for a `MapAdapter`. Every test calls
`create` for a fresh, unmounted subject, so tests never share state.
A real adapter passes the same suite with its own controls.

This is a function exported by `@mapcairn/core/contracts`, checked against version 0.2.0.

## Signature

```ts
import { runMapAdapterContract } from "@mapcairn/core/contracts";
 
function runMapAdapterContract(name: string, create: () => MapAdapterSubject): void;
```

## Parameters

- `name` (`string`)
- `create` (`() => MapAdapterSubject`)

## Returns

`void`

## See also

- [`MapAdapterSubject`](https://docs.mapcairn.com/api/core/contracts/MapAdapterSubject.md)

Source: [packages/core/src/contracts/mapAdapter.contract.ts:148](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/contracts/mapAdapter.contract.ts#L148)
