InterfaceIArgExpr
Defines expression-based argument matchers for non-public member arrangements.
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 any value of the specified runtime type.
Declaration
Expression IsAny(Type type, params object[] args)
Parameters
type
Type of the argument.
args
object[]
Constructor arguments for matcher creation when required.
Returns
An expression that represents the matcher.
IsAny<T>()
Matches any value of the specified type.
Declaration
Expression IsAny<T>()
Returns
An expression that represents the matcher.
IsNull<T>()
Matches a null value.
Declaration
Expression IsNull<T>()
Returns
An expression that represents the matcher.
Matches<T>(Expression<Predicate<T>>)
Matches an argument when it satisfies the specified predicate.
Declaration
Expression Matches<T>(Expression<Predicate<T>> match)
Parameters
match
Expression<Predicate<T>>
Predicate that evaluates the argument value.
Returns
An expression that represents the matcher.
Out<T>(T)
Supplies a value for a ref or out argument.
Declaration
Expression Out<T>(T value)
Parameters
value
T
Value to assign.
Returns
An expression that represents the argument value.
Ref<T>(T)
Matches a ref argument by value.
Declaration
Expression Ref<T>(T value)
Parameters
value
T
Value to match.
Returns
An expression that represents the matcher.