Matches any value of the given TValue type.
Namespace: Moq.Protected
Assembly: Moq (in Moq.dll) Version: 4.0.10827.0 (4.0.0.0)
Syntax
Remarks
Typically used when the actual argument value for a method
call is not relevant.
Examples
CopyC#
// Throws an exception for a call to Remove with any string value. mock.Protected() .Setup("Remove", ItExpr.IsAny<string>()) .Throws(new InvalidOperationException());