Setup () can be used to mock a method or property.
SetupGet () is specifically designed to bully the recipient of a property. Took a quick look at the Moq source code, and it looks like if you use Setup () on the getter properties, it is called SetupGet (). Thus, in this case, there is probably a more personal preference as to whether you want to be more explicit and use SetupGet () instead of Setup ().
Of course, my knowledge of Moq is limited, so I donβt know if there are any special cases where you will need to use SetupGet () via Setup ().
John Allers Apr 25 2018-11-11T00: 00Z
source share