# DynamicShould

## HaveProperty

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

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

**Exception**

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