Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use example
  • Loading branch information
SeanKilleen committed Oct 16, 2023
commit a067bee900dabdaf7c29de22696b588a1181bc16
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ Is.AnyOf(object[] expected)

## Examples of Use

```csharp
Assert.That(42, Is.AnyOf(0, -1, 42, 100));
[!code-csharp[AnyOfExample](~/snippets/Snippets.NUnit/Constraints/ConstraintExamples.cs#AnyOfExample)]

// You can use a custom comparer as well
Assert.That(myOwnObject, Is.AnyOf(myArray).Using(myComparer));
```
[!code-csharp[AnyOfWithCustomComparison](~/snippets/Snippets.NUnit/Constraints/ConstraintExamples.cs#AnyOfWithCustomComparison)]