Interface
IArgExpr

Defines expression-based argument matchers for non-public member arrangements.

Definition

Namespace:Telerik.JustMock

Assembly:Telerik.JustMock.dll

Syntax:

cs-api-definition
public interface IArgExpr

Properties

AnyBool

Matches argument can contain any bool value.

Declaration

cs-api-definition
Expression AnyBool { get; }

Property Value

Expression

AnyByte

Matches argument can contain any byte value.

Declaration

cs-api-definition
Expression AnyByte { get; }

Property Value

Expression

AnyChar

Matches argument can contain any char value.

Declaration

cs-api-definition
Expression AnyChar { get; }

Property Value

Expression

AnyDateTime

Matches argument can contain any DateTime value.

Declaration

cs-api-definition
Expression AnyDateTime { get; }

Property Value

Expression

AnyDecimal

Matches argument can contain any decimal value.

Declaration

cs-api-definition
Expression AnyDecimal { get; }

Property Value

Expression

AnyDouble

Matches argument can contain any double value.

Declaration

cs-api-definition
Expression AnyDouble { get; }

Property Value

Expression

AnyFloat

Matches argument can contain any float value.

Declaration

cs-api-definition
Expression AnyFloat { get; }

Property Value

Expression

AnyGuid

Matches argument can contain any Guid value.

Declaration

cs-api-definition
Expression AnyGuid { get; }

Property Value

Expression

AnyInt

Matches argument can contain any int value.

Declaration

cs-api-definition
Expression AnyInt { get; }

Property Value

Expression

AnyLong

Matches argument can contain any long value.

Declaration

cs-api-definition
Expression AnyLong { get; }

Property Value

Expression

AnyObject

Matches argument can contain any object value.

Declaration

cs-api-definition
Expression AnyObject { get; }

Property Value

Expression

AnySByte

Matches argument can contain any SByte value.

Declaration

cs-api-definition
Expression AnySByte { get; }

Property Value

Expression

AnyShort

Matches argument can contain any short value.

Declaration

cs-api-definition
Expression AnyShort { get; }

Property Value

Expression

AnyString

Matches argument can contain any string value.

Declaration

cs-api-definition
Expression AnyString { get; }

Property Value

Expression

AnyTimeSpan

Matches argument can contain any TimeSpan value.

Declaration

cs-api-definition
Expression AnyTimeSpan { get; }

Property Value

Expression

AnyUri

Matches argument can contain any Uri value.

Declaration

cs-api-definition
Expression AnyUri { get; }

Property Value

Expression

Methods

IsAny(Type, params object[])

Matches any value of the specified runtime type.

Declaration

cs-api-definition
Expression IsAny(Type type, params object[] args)

Parameters

type

Type

Type of the argument.

args

object[]

Constructor arguments for matcher creation when required.

Returns

Expression

An expression that represents the matcher.

IsAny<T>()

Matches any value of the specified type.

Declaration

cs-api-definition
Expression IsAny<T>()

Returns

Expression

An expression that represents the matcher.

IsNull<T>()

Matches a null value.

Declaration

cs-api-definition
Expression IsNull<T>()

Returns

Expression

An expression that represents the matcher.

Matches<T>(Expression<Predicate<T>>)

Matches an argument when it satisfies the specified predicate.

Declaration

cs-api-definition
Expression Matches<T>(Expression<Predicate<T>> match)

Parameters

match

Expression<Predicate<T>>

Predicate that evaluates the argument value.

Returns

Expression

An expression that represents the matcher.

Out<T>(T)

Supplies a value for a ref or out argument.

Declaration

cs-api-definition
Expression Out<T>(T value)

Parameters

value

T

Value to assign.

Returns

Expression

An expression that represents the argument value.

Ref<T>(T)

Matches a ref argument by value.

Declaration

cs-api-definition
Expression Ref<T>(T value)

Parameters

value

T

Value to match.

Returns

Expression

An expression that represents the matcher.