Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default parameter for MockedObject.Verify()

Tags:

moq

I have a mocked object and am verifying some things called. But wanted to know what the default parameter is for MockedObject.Verify(thingToBeVerified)?

Is it Times.Zero, Times.Once, or even Times.AtLeastOnce?

I am using Moq 4.2 in NUnit 2.6.3

like image 436
Fred Avatar asked Mar 19 '23 07:03

Fred


1 Answers

Times.AtLeastOnce() is the default

like image 166
vvv Avatar answered May 08 '23 08:05

vvv