Skip to content

Add Times Expectation to the mock setup #1210

@surovij45

Description

@surovij45
mock
.Setup(foo => foo.Add("my string")
.Returns(true)
.Times(Times.Once)

Add Times expectation to the mock setup, and we can verify setup using single line mock.VerifyAll() or mockRepo.VerifyAll()

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions