Skip to content

Commit

Permalink
Update collection documents to use generic collections as standard su…
Browse files Browse the repository at this point in the history
…pport for non-generic collections was dropped in v6.0
  • Loading branch information
jonathonchase committed Nov 18, 2021
1 parent 586035f commit 762f98f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/_pages/collections.md
Expand Up @@ -11,7 +11,7 @@ A collection object in .NET is so versatile that the number of assertions on the
Most, if not all, are so self-explanatory that we'll just list them here.

```csharp
IEnumerable collection = new[] { 1, 2, 5, 8 };
IEnumerable<int> collection = new[] { 1, 2, 5, 8 };

collection.Should().NotBeEmpty()
.And.HaveCount(4)
Expand Down Expand Up @@ -76,8 +76,8 @@ collection.Should().BeEmpty();
collection.Should().BeNullOrEmpty();
collection.Should().NotBeNullOrEmpty();

IEnumerable otherCollection = new[] { 1, 2, 5, 8, 1 };
IEnumerable anotherCollection = new[] { 10, 20, 50, 80, 10 };
IEnumerable<int> otherCollection = new[] { 1, 2, 5, 8, 1 };
IEnumerable<int> anotherCollection = new[] { 10, 20, 50, 80, 10 };
collection.Should().IntersectWith(otherCollection);
collection.Should().NotIntersectWith(anotherCollection);
```
Expand Down

0 comments on commit 762f98f

Please sign in to comment.