MockBehavior
enumeration has the following values:Strict
: an exception is thrown whenever a method or property is invoked without a matching configurationLoose
: Moq accepts all invocations and attempts to create a valid return valueDefault
: equivalent to Loose
.Loose
mode. Moq supports two behaviors: Empty
and Mock
.DefaultValueProvider
.