# Empty

## ShouldBeEmpty

```cs
var homer = new Person { Name = "Homer" };
var powerPlantOnTheWeekend = new List<Person> { homer };
powerPlantOnTheWeekend.ShouldBeEmpty();
```

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

**Exception**

```
powerPlantOnTheWeekend
    should be empty but had
1
    item and was
[Homer]
```

## ShouldNotBeEmpty

```cs
var moesTavernOnTheWeekend = new List<Person>();
moesTavernOnTheWeekend.ShouldNotBeEmpty();
```

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

**Exception**

```
moesTavernOnTheWeekend
    should not be empty but was
```
