> For the complete documentation index, see [llms.txt](https://docs.shouldly.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shouldly.org/documentation/dynamicshould.md).

# DynamicShould

## HaveProperty

```cs
dynamic theFuture = new ExpandoObject();
DynamicShould.HaveProperty(() => theFuture, "RobotTeachers");
```

[<sup>snippet source</sup>](https://github.com/shouldly/shouldly/blob/master/src/DocumentationExamples/CodeExamples/DynamicShouldExamples.HaveProperty.codeSample.approved.cs#L1-L2) <sup>|</sup> [<sup>anchor</sup>](#snippet-DynamicShouldExamples.HaveProperty.codeSample.approved.cs)

**Exception**

```
Dynamic object "theFuture" should contain property "RobotTeachers" but does not.
```
