skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ArgExpr

Allows specification of a matching condition for an argument for a non-public method, rather a specific value.

Inheritance
System.Object
ArgExpr
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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

Extension Methods

FluentHelper.Arrange<T, TResult>(T, Expression<Func<T, TResult>>)
FluentHelper.Arrange<T>(T, Expression<Action<T>>)
FluentHelper.ArrangeSet<T>(T, Action<T>)
FluentHelper.ArrangeLike<T>(T, Expression<Func<T, Boolean>>)
FluentHelper.Assert<T, TReturn>(T, Expression<Func<T, TReturn>>, String)
FluentHelper.Assert<T, TReturn>(T, Expression<Func<T, TReturn>>, Occurs, String)
FluentHelper.Assert<T>(T, Expression<Action<T>>, String)
FluentHelper.Assert<T>(T, Expression<Action<T>>, Occurs, String)
FluentHelper.AssertSet<T>(T, Action<T>, String)
FluentHelper.AssertSet<T>(T, Action<T>, Occurs, String)
FluentHelper.Raise<T>(T, Action<T>, EventArgs)
FluentHelper.Raise<T>(T, Action<T>, Object[])
FluentHelper.Assert<T>(T, String)
FluentHelper.AssertAll<T>(T, String)
Getting Started
  • Unit Testing and Mocking Explained
  • Videos
  • FAQs
Community
  • Forums
  • Blogs
  • Feedback Portal

Copyright © 2019 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.