Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-VBFK committed Apr 14, 2022
1 parent aba364d commit 8c8c471
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/_pages/enums.md
Expand Up @@ -42,3 +42,11 @@ Lastly, if you want to verify than an enum has a specific integral value, you ca
MyEnum.One.Should().HaveValue(1);
MyEnum.One.Should().NotHaveValue(2);
```

```csharp
var myEnum = (MyEnum)1;
myEnum.Should().BeDefined();

myEnum = (MyEnum)99;
myEnum.Should().NotBeDefined();
```
2 changes: 1 addition & 1 deletion docs/_pages/releases.md
Expand Up @@ -10,7 +10,7 @@ sidebar:
## Unreleased

### What's new
* Add `BeDefined` and `NotBeDefined` to to assert on existence of an enum value - [#1888](https://github.com/fluentassertions/fluentassertions/pull/1888)
* Add `BeDefined` and `NotBeDefined` to assert on existence of an enum value - [#1888](https://github.com/fluentassertions/fluentassertions/pull/1888)

## 6.6.0

Expand Down

0 comments on commit 8c8c471

Please sign in to comment.