New to Telerik JustMockStart a free 30-day trial

IArgExpr

Interface

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

Definition

Namespace:Telerik.JustMock

Assembly:Telerik.JustMock.dll

Syntax:

C#
public interface IArgExpr

Properties

Matches argument can contain any bool value.

C#
Expression AnyBool { get; }

Matches argument can contain any byte value.

C#
Expression AnyByte { get; }

Matches argument can contain any char value.

C#
Expression AnyChar { get; }

Matches argument can contain any DateTime value.

C#
Expression AnyDateTime { get; }

Matches argument can contain any decimal value.

C#
Expression AnyDecimal { get; }

Matches argument can contain any double value.

C#
Expression AnyDouble { get; }

Matches argument can contain any float value.

C#
Expression AnyFloat { get; }

Matches argument can contain any Guid value.

C#
Expression AnyGuid { get; }

Matches argument can contain any int value.

C#
Expression AnyInt { get; }

Matches argument can contain any long value.

C#
Expression AnyLong { get; }

Matches argument can contain any object value.

C#
Expression AnyObject { get; }

Matches argument can contain any SByte value.

C#
Expression AnySByte { get; }

Matches argument can contain any short value.

C#
Expression AnyShort { get; }

Matches argument can contain any string value.

C#
Expression AnyString { get; }

Matches argument can contain any TimeSpan value.

C#
Expression AnyTimeSpan { get; }

Matches argument can contain any Uri value.

C#
Expression AnyUri { get; }

Methods

Matches any value of the specified runtime type.

C#
Expression IsAny(Type type, params object[] args)
Parameters:typeType

Type of the argument.

argsobject[]

Constructor arguments for matcher creation when required.

Returns:

Expression

An expression that represents the matcher.

Matches any value of the specified type.

C#
Expression IsAny<T>()
Returns:

Expression

An expression that represents the matcher.

Matches a null value.

C#
Expression IsNull<T>()
Returns:

Expression

An expression that represents the matcher.

Matches an argument when it satisfies the specified predicate.

C#
Expression Matches<T>(Expression<Predicate<T>> match)
Parameters:matchExpression<Predicate<T>>

Predicate that evaluates the argument value.

Returns:

Expression

An expression that represents the matcher.

Supplies a value for a ref or out argument.

C#
Expression Out<T>(T value)
Parameters:valueT

Value to assign.

Returns:

Expression

An expression that represents the argument value.

Matches a ref argument by value.

C#
Expression Ref<T>(T value)
Parameters:valueT

Value to match.

Returns:

Expression

An expression that represents the matcher.