Skip to content

Document additional verification count methods #421

@vbreuss

Description

@vbreuss

Description

Some verification count methods are missing from the documentation.

Missing Documentation

  • .Between(min, max) - Between min and max times (inclusive)
  • .Times(Func<int, bool>) - Custom predicate verification

Suggested Documentation

Add these methods to the "Verify interactions" section under supported call count verifications:

- `.Between(min, max)` - Between min and max times (inclusive)
- `.Times(predicate)` - Custom predicate

**Examples:**

```csharp
// Between min and max (inclusive)
sut.VerifyMock.Invoked.Dispense(It.IsAny<string>(), It.IsAny<int>())
    .Between(3, 5);

// Custom predicate
sut.VerifyMock.Invoked.Dispense(It.IsAny<string>(), It.IsAny<int>())
    .Times(count => count % 2 == 0);  // Even number of calls

Metadata

Metadata

Labels

documentationImprovements or additions to documentationstate: releasedThe issue is released

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions