ErrLookup › devlooped/moq

devlooped/moq

The most popular and friendly mocking framework for .NET · C# · 243 source files

Analyzed at 89a5be629c on 2026-09-16. 77 documented errors.

Code / MessageTypeSeverityTags
ArgumentOutOfRangeException: callCount
validation error argument-out-of-range, moq, verification
callback (Argument is null)
exception error moq, null-argument, callback, argumentnull
Unsupported expression
exception error moq, expression-tree, unsupported-expression
Use the new syntax, which allows you to pass the value in…
exception error moq, obsolete-api, verifyset, compile-error
A matching constructor for the given arguments was not…
exception error moq, mocking, constructor, missing-method, csharp
Unhandled expression type
exception error expression-tree, moq, unsupported-syntax
Type does not have matching protected member
exception error moq, reflection, protected-members, signature-mismatch
Unsupported expression
exception error moq, linq-expressions, argument-exception, setup
Type to mock ( ) must be an interface, a delegate, or a…
exception error moq, mocking, sealed-class, proxy-generation, csharp
Resources.AlreadyInitialized
exception error moq, invalid-state, as-interface, lifecycle
Member . does not exist.
exception error moq, reflection, protected-members, typo
Could not determine the correct positions for all argument…
exception error moq, argument-matchers, type-conversion, bug
ex.Message from ReplaceDuck expression rewriting (rethrown…
exception error moq, protected-members, expression-rewriting, argumentexception
It is impossible to call the provided strongly-typed…
exception error moq, argument-matcher, linq-expressions, generics, csharp
Method . is public. Use strong-typed Expect overload…
exception error moq, protected-members, misuse, strong-typing
Expression is not a setter
exception error moq, expression-tree, setter
LINQ method ' ' not supported.
exception error moq, linq, query-syntax, unsupported-method, csharp
No protected method . found whose signature is compatible…
exception error moq, reflection, protected-members, signature-mismatch
Ref expression must evaluate to a constant value.
exception error moq, ref-parameter, expression-evaluation, unsupported-expression
Resources.InvalidCallbackParameterCountMismatch (formatted…
exception error moq, callback, argument-count, unit-testing
The return type of the last member shown above is not…
exception error moq, not-supported, mockability, sealed-type
NotSupportedException (no message: duck member is neither a…
exception error moq, unsupported-operation, expression-trees, fields
Resources.InvalidMockGetType (formatted with typeof(T).Name…
exception error moq, mock, generic-type, unit-testing
Resources.InvalidReturnsCallbackNotADelegateWithReturnType
exception error moq, callback, return-type, unit-testing
The equals ("==" or "=" in VB) and the conditional 'and'…
exception error moq, linq, query-syntax, unsupported-operator, csharp
To specify a setup for public property
exception error moq, protected-members, properties, misuse
Resources.UnsupportedExpression + expr.ToStringFixed() + "…
exception error moq, unsupported-expression, recursive-mock, sealed-type
Expression is not a property access
exception error moq, linq-expressions, argument-exception, property-setup
Unhandled binding type
exception error expression-tree, moq, unsupported-syntax
Resources.ObjectInstanceNotMock
exception error moq, mock, not-a-mock, unit-testing
Value cannot be an empty string.
exception error moq, argument-validation, empty-string
value (Argument is out of range)
exception error moq, argumentoutofrange, enum, mockfactory
Resources.InvalidCallbackReturnTypeMismatch (formatted with…
exception error moq, callback, return-type, unit-testing
Resources.SetupNotEventAdd (formatted with part.Expression)
exception error moq, event, raise, setup
Out expression must evaluate to a constant value.
exception error moq, out-parameter, expression, not-supported
Member is not supported for protected mocking.
exception error moq, mocking, not-supported, expression
Resources.UnsupportedExpression (formatted with…
exception error moq, expression-tree, unsupported-expression, setup
Value cannot be null. (Parameter 'value')
validation error moq, null-argument, static-configuration, expression-compiler
Delays have to be greater than zero to ensure an async…
exception error moq, argument-out-of-range, timespan, async
ArgumentOutOfRangeException: callCountFrom (invalid range…
validation error argument-out-of-range, moq, verification
Resources.UnsupportedExpression (formatted with expression)
exception error moq, unsupported-expression, raise, event
Type does not have a default (public parameterless)…
exception error moq, constructor, default-constructor
Value cannot be null. (Parameter 'newExpression')
validation error moq, null-argument, expression-visitor, constructor
Cannot set up . because it is not accessible to the proxy…
exception error moq, internalsvisibleto, proxy
ex.Message (re-thrown ArgumentException with paramName…
exception error moq, reflection, expression-rewriting, protected-members
Type does not implement required interface
exception error moq, interface, type-check
No constructor call could be found.
exception error moq, not-supported, expression-visitor, constructor
"public bool ( ) in class .
exception error moq, matcher-attribute, missing-method, reflection
Resources.SetupNotEventRemove (formatted with…
exception error moq, event, raise, remove-accessor
The new syntax allows you to pass the value in the…
exception error moq, obsolete, setupset, deprecated-api
Expression is not an event add
exception error moq, events, expression-tree
Expression involves a field access, which is not supported…
exception error moq, linq-expressions, field-access, unsupported-operation
Resources.ArgumentMatcherWillNeverMatch (formatted with…
exception error moq, argument-matcher, type-mismatch, setup
ArgumentNullException: Value cannot be null. (Parameter…
validation error csharp, null-argument, reflection, moq, attribute-construction
InvalidOperationException (unhandled Times kind in…
exception error invalid-enum-value, moq, internal-invariant
Expression is not an event remove
exception error moq, events, expression-tree
ExpectSet has been renamed to SetupSet, and the new syntax…
exception error moq, obsolete, expectset, deprecated-api
ArgumentNullException: Value cannot be null. (Parameter…
validation error moq, null-argument, async, randomness
Resources.TypeMatchersMayNotBeUsedWithCallbacks
exception error moq, type-matcher, callback, invalid-usage
ArgumentOutOfRangeException: callCountTo (invalid range…
validation error argument-out-of-range, moq, verification
Use the new syntax, which allows you to pass the value in…
exception error moq, obsolete, verifyset, deprecated-api
Resources.ConstructorArgsForInterface
exception error moq, constructor-arguments, interface, invalid-argument
ArgumentOutOfRangeException: callCountFrom (invalid range…
validation error argument-out-of-range, moq, verification
Can't set return value for void method
exception error moq, mocking, void-method, argument-exception
Property . does not have a setter.
exception error moq, property, setter, setup
Use ItExpr.IsNull rather than a null argument value, as it…
exception error moq, mocking, null-argument, argument-exception
Resources.CallBaseCannotBeUsedWithDelegateMocks
exception error moq, callbase, delegate, unsupported-operation
Resources.InvalidCallbackNotADelegateWithReturnTypeVoid
exception error moq, callback, return-type, action-func
Resources.InvalidCallbackParameterMismatch (formatted with…
exception error moq, callback, parameter-mismatch, type-mismatch
value (Argument is null)
exception error moq, argumentnull, mockfactory, defaultvalueprovider
Minimum delay has to be lower than maximum delay.
exception error moq, argument-range, timespan, randomness
Resources.AsMustBeInterface
exception error moq, as-interface, invalid-argument, type-mismatch
InvalidOperationException (unhandled Times kind in ToString)
exception error invalid-enum-value, moq, internal-invariant
condition (Argument is null)
exception error moq, null-argument, when, condition
Resources.ConstructorArgsForDelegate
exception error moq, constructor-arguments, delegate, invalid-argument
Property . does not have a getter.
exception error moq, property, getter, setup
ArgumentOutOfRangeException: callCount
validation error argument-out-of-range, moq, verification