InterfaceIArgExpr
Allows specification of a matching condition for an argument for a non-public method, rather a specific value.
Definition
Namespace:Telerik.JustMock
Assembly:Telerik.JustMock.dll
Syntax:
public interface IArgExpr
Properties
AnyBool
Matches argument can contain any bool value.
AnyByte
Matches argument can contain any byte value.
AnyChar
Matches argument can contain any char value.
AnyDateTime
Matches argument can contain any DateTime value.
AnyDecimal
Matches argument can contain any decimal value.
AnyDouble
Matches argument can contain any double value.
AnyFloat
Matches argument can contain any float value.
AnyGuid
Matches argument can contain any Guid value.
AnyInt
Matches argument can contain any int value.
AnyLong
Matches argument can contain any long value.
AnyObject
Matches argument can contain any object value.
AnySByte
Matches argument can contain any SByte value.
AnyShort
Matches argument can contain any short value.
AnyString
Matches argument can contain any string value.
AnyTimeSpan
Matches argument can contain any TimeSpan value.
AnyUri
Matches argument can contain any Uri value.
Methods
IsAny(Type, params object[])
Matches argument for any value of a given type.
Declaration
Expression IsAny(Type type, params object[] args)
Parameters
type
Type for the argument
args
object[]
Constructor arguments
Returns
Argument type
IsAny<T>()
Matches argument for any value.
IsNull<T>()
Matches argument for null value.
Matches<T>(Expression<Predicate<T>>)
Matches argument for the expected condition.
Declaration
Expression Matches<T>(Expression<Predicate<T>> match)
Parameters
match
Expression<Predicate<T>>
Matcher expression
Returns
Argument type
Out<T>(T)
Returns a value from a ref or out argument.
Declaration
Expression Out<T>(T value)
Parameters
value
T
Value to match.
Returns
Argument type
Ref<T>(T)
Matches a value for ref argument.
Declaration
Expression Ref<T>(T value)
Parameters
value
T
Value to match.
Returns
Argument type