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

Namespace Telerik.JustMock

Classes

Arg

Allows specification of a matching condition for an argument, rather a specific value.

Arg.OutRefResult<T>

An implementation detail that allows passing ref arguments in C#

ArgExpr

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

Args

Specifies Mock.Assert to ignore any specific arguments.

AsyncExtensions

Defines the expectation for a specific method.

AttributesToAvoidReplicating

A list of attributes that must not be replicated when building a proxy. JustMock tries to copy all attributes from the types and methods being proxied, but that is not always a good idea for every type of attribute. Add additional attributes to this list that prevent the proxy from working correctly.

DebugView

Provides introspection and tracing capabilities for ease of debugging failing tests.

Expr

Provides utility methods for simplifying the creation of expression trees used in mocking scenarios. This class offers a fluent API for building property access expressions that can be used to configure mock behavior for property getters and setters.

LocalRef

Creates handles used for mocking ref returns, used with conjunction with Returns(Delegate)

LocalRefHandle<T>

Handles local refs returns used for mocking, used with conjunction with WithValue<T>(T)

Mock

Entry point for setting up and asserting mocks.

Occurs

Defines filters for calls , used in conjunction with assert.

Param

Defines parameter placeholders when the parameter type is one of the commonly occurring types, e.g. int. Example: Mock.Create<IEqualityComparer>(me => me.Equals(Arg.AnyObject, Arg.AnyObject) == Equals(Param._1, Param._2)); In the example, Param._1 and Param._2 are implicitly converted to System.Object.

Param<T>

Defines parameter placeholders when the parameter type is T.

PrivateAccessor

Gives access to the non-public members of a type or instance. This class provides functionality similar to the one that exists in regular reflection classes with the added benefit that it can bypass essential security checks related to accessing non-public members through reflection.

TaskHelper

Wait

Specifies the duration to wait before executing an event.

Structs

Param.EverythingExcept

This class appears only in compiler errors.

Interfaces

IArgExpr

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

IPrivateRefReturnAccessor

Gives access to the non-public ref returns members of a type or instance.

IPropertyExpressionBuilder<T>

Defines methods for building LINQ expressions that represent property get and set operations. This interface is used to facilitate setting up expectations and verifications for property access. It provides a strongly-typed approach to creating expressions that can be used to intercept, verify, and emulate property behavior during testing.

Enums

Behavior

Specifies the behavior of the mock.

Constructor

Defines the behavior of target constructor.

RangeKind

Defines the kind of range value to consider.

StaticConstructor

Defines behavior of the static constructor.

Delegates

Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>

Encapsulates a method that has 10 parameters and does not return a value.

Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>

Encapsulates a method that has 11 parameters and does not return a value.

Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>

Encapsulates a method that has 12 parameters and does not return a value.

Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>

Encapsulates a method that has 13 parameters and does not return a value.

Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>

Encapsulates a method that has 14 parameters and does not return a value.

Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>

Encapsulates a method that has 15 parameters and does not return a value.

Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>

Encapsulates a method that has 16 parameters and does not return a value.

Action<T1, T2, T3, T4, T5>

Encapsulates a method that has 5 parameters and does not return a value.

Action<T1, T2, T3, T4, T5, T6>

Encapsulates a method that has 6 parameters and does not return a value.

Action<T1, T2, T3, T4, T5, T6, T7>

Encapsulates a method that has 7 parameters and does not return a value.

Action<T1, T2, T3, T4, T5, T6, T7, T8>

Encapsulates a method that has 8 parameters and does not return a value.

Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>

Encapsulates a method that has 9 parameters and does not return a value.

Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>

Encapsulates a method that has 9 parameters and returns a value of the type specified by TResult parameter.

Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>

Encapsulates a method that has 10 parameters and returns a value of the type specified by TResult parameter.

Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult>

Encapsulates a method that has 11 parameters and returns a value of the type specified by TResult parameter.

Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult>

Encapsulates a method that has 12 parameters and returns a value of the type specified by TResult parameter.

Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult>

Encapsulates a method that has 13 parameters and returns a value of the type specified by TResult parameter.

Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult>

Encapsulates a method that has 14 parameters and returns a value of the type specified by TResult parameter.

Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult>

Encapsulates a method that has 15 parameters and returns a value of the type specified by TResult parameter.

Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>

Encapsulates a method that has 16 parameters and returns a value of the type specified by TResult parameter.

Func<T1, T2, T3, T4, T5, TResult>

Encapsulates a method that has 5 parameters and returns a value of the type specified by TResult parameter.

Func<T1, T2, T3, T4, T5, T6, TResult>

Encapsulates a method that has 6 parameters and returns a value of the type specified by TResult parameter.

Func<T1, T2, T3, T4, T5, T6, T7, TResult>

Encapsulates a method that has 7 parameters and returns a value of the type specified by TResult parameter.

Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>

Encapsulates a method that has 8 parameters and returns a value of the type specified by TResult parameter.

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.