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 ba5f094 commit 2596e55
Showing 1 changed file with 8 additions and 0 deletions.
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();
```

0 comments on commit 2596e55

Please sign in to comment.