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