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

Interface IReturns<TReturn>

Interface containing overloads of the Returns method.

Namespace: Telerik.JustMock.Expectations.Abstraction
Assembly: Telerik.JustMock.dll

Syntax

public interface IReturns<TReturn>
Type Parameters
TReturn

Methods

Returns<T1>(Func<T1, TReturn>)

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1>(Func<T1, TReturn> func)
Parameters
System.Func<T1, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn>)

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn> func)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

T2

Type of the second parameter of the anonymous method that this delegate encapsulates

T3

Type of the third parameter of the anonymous method that this delegate encapsulates

T4

Type of the fourth parameter of the anonymous method that this delegate encapsulates

T5

Type of the fifth parameter of the anonymous method that this delegate encapsulates

T6

Type of the sixth parameter of the anonymous method that this delegate encapsulates

T7

Type of the seventh parameter of the anonymous method that this delegate encapsulates

T8

Type of the eighth parameter of the anonymous method that this delegate encapsulates

T9

Type of the ninth parameter of the anonymous method that this delegate encapsulates

T10

Type of the tenth parameter of the anonymous method that this delegate encapsulates

Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TReturn>)

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TReturn> func)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

T2

Type of the second parameter of the anonymous method that this delegate encapsulates

T3

Type of the third parameter of the anonymous method that this delegate encapsulates

T4

Type of the fourth parameter of the anonymous method that this delegate encapsulates

T5

Type of the fifth parameter of the anonymous method that this delegate encapsulates

T6

Type of the sixth parameter of the anonymous method that this delegate encapsulates

T7

Type of the seventh parameter of the anonymous method that this delegate encapsulates

T8

Type of the eighth parameter of the anonymous method that this delegate encapsulates

T9

Type of the ninth parameter of the anonymous method that this delegate encapsulates

T10

Type of the tenth parameter of the anonymous method that this delegate encapsulates

T11

Type of the eleventh parameter of the anonymous method that this delegate encapsulates

Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TReturn>)

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TReturn> func)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

T2

Type of the second parameter of the anonymous method that this delegate encapsulates

T3

Type of the third parameter of the anonymous method that this delegate encapsulates

T4

Type of the fourth parameter of the anonymous method that this delegate encapsulates

T5

Type of the fifth parameter of the anonymous method that this delegate encapsulates

T6

Type of the sixth parameter of the anonymous method that this delegate encapsulates

T7

Type of the seventh parameter of the anonymous method that this delegate encapsulates

T8

Type of the eighth parameter of the anonymous method that this delegate encapsulates

T9

Type of the ninth parameter of the anonymous method that this delegate encapsulates

T10

Type of the tenth parameter of the anonymous method that this delegate encapsulates

T11

Type of the eleventh parameter of the anonymous method that this delegate encapsulates

T12

Type of the twelveth parameter of the anonymous method that this delegate encapsulates

Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TReturn>)

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TReturn> func)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

T2

Type of the second parameter of the anonymous method that this delegate encapsulates

T3

Type of the third parameter of the anonymous method that this delegate encapsulates

T4

Type of the fourth parameter of the anonymous method that this delegate encapsulates

T5

Type of the fifth parameter of the anonymous method that this delegate encapsulates

T6

Type of the sixth parameter of the anonymous method that this delegate encapsulates

T7

Type of the seventh parameter of the anonymous method that this delegate encapsulates

T8

Type of the eighth parameter of the anonymous method that this delegate encapsulates

T9

Type of the ninth parameter of the anonymous method that this delegate encapsulates

T10

Type of the tenth parameter of the anonymous method that this delegate encapsulates

T11

Type of the eleventh parameter of the anonymous method that this delegate encapsulates

T12

Type of the twelveth parameter of the anonymous method that this delegate encapsulates

T13

Type of the thirteenth parameter of the anonymous method that this delegate encapsulates

Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TReturn>)

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TReturn> func)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

T2

Type of the second parameter of the anonymous method that this delegate encapsulates

T3

Type of the third parameter of the anonymous method that this delegate encapsulates

T4

Type of the fourth parameter of the anonymous method that this delegate encapsulates

T5

Type of the fifth parameter of the anonymous method that this delegate encapsulates

T6

Type of the sixth parameter of the anonymous method that this delegate encapsulates

T7

Type of the seventh parameter of the anonymous method that this delegate encapsulates

T8

Type of the eighth parameter of the anonymous method that this delegate encapsulates

T9

Type of the ninth parameter of the anonymous method that this delegate encapsulates

T10

Type of the tenth parameter of the anonymous method that this delegate encapsulates

T11

Type of the eleventh parameter of the anonymous method that this delegate encapsulates

T12

Type of the twelveth parameter of the anonymous method that this delegate encapsulates

T13

Type of the thirteenth parameter of the anonymous method that this delegate encapsulates

T14

Type of the fourteenth parameter of the anonymous method that this delegate encapsulates

Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TReturn>)

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TReturn> func)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

T2

Type of the second parameter of the anonymous method that this delegate encapsulates

T3

Type of the third parameter of the anonymous method that this delegate encapsulates

T4

Type of the fourth parameter of the anonymous method that this delegate encapsulates

T5

Type of the fifth parameter of the anonymous method that this delegate encapsulates

T6

Type of the sixth parameter of the anonymous method that this delegate encapsulates

T7

Type of the seventh parameter of the anonymous method that this delegate encapsulates

T8

Type of the eighth parameter of the anonymous method that this delegate encapsulates

T9

Type of the ninth parameter of the anonymous method that this delegate encapsulates

T10

Type of the tenth parameter of the anonymous method that this delegate encapsulates

T11

Type of the eleventh parameter of the anonymous method that this delegate encapsulates

T12

Type of the twelveth parameter of the anonymous method that this delegate encapsulates

T13

Type of the thirteenth parameter of the anonymous method that this delegate encapsulates

T14

Type of the fourteenth parameter of the anonymous method that this delegate encapsulates

T15

Type of the fifteenth parameter of the anonymous method that this delegate encapsulates

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

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TReturn> func)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

T2

Type of the second parameter of the anonymous method that this delegate encapsulates

T3

Type of the third parameter of the anonymous method that this delegate encapsulates

T4

Type of the fourth parameter of the anonymous method that this delegate encapsulates

T5

Type of the fifth parameter of the anonymous method that this delegate encapsulates

T6

Type of the sixth parameter of the anonymous method that this delegate encapsulates

T7

Type of the seventh parameter of the anonymous method that this delegate encapsulates

T8

Type of the eighth parameter of the anonymous method that this delegate encapsulates

T9

Type of the ninth parameter of the anonymous method that this delegate encapsulates

T10

Type of the tenth parameter of the anonymous method that this delegate encapsulates

T11

Type of the eleventh parameter of the anonymous method that this delegate encapsulates

T12

Type of the twelveth parameter of the anonymous method that this delegate encapsulates

T13

Type of the thirteenth parameter of the anonymous method that this delegate encapsulates

T14

Type of the fourteenth parameter of the anonymous method that this delegate encapsulates

T15

Type of the fifteenth parameter of the anonymous method that this delegate encapsulates

T16

Type of the sixteenth parameter of the anonymous method that this delegate encapsulates

Returns<T1, T2>(Func<T1, T2, TReturn>)

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1, T2>(Func<T1, T2, TReturn> func)
Parameters
System.Func<T1, T2, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

T2

Type of the second parameter of the anonymous method that this delegate encapsulates

Returns<T1, T2, T3>(Func<T1, T2, T3, TReturn>)

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1, T2, T3>(Func<T1, T2, T3, TReturn> func)
Parameters
System.Func<T1, T2, T3, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

T2

Type of the second parameter of the anonymous method that this delegate encapsulates

T3

Type of the third parameter of the anonymous method that this delegate encapsulates

Returns<T1, T2, T3, T4>(Func<T1, T2, T3, T4, TReturn>)

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1, T2, T3, T4>(Func<T1, T2, T3, T4, TReturn> func)
Parameters
System.Func<T1, T2, T3, T4, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

T2

Type of the second parameter of the anonymous method that this delegate encapsulates

T3

Type of the third parameter of the anonymous method that this delegate encapsulates

T4

Type of the fourth parameter of the anonymous method that this delegate encapsulates

Returns<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, TReturn>)

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, TReturn> func)
Parameters
Func<T1, T2, T3, T4, T5, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

T2

Type of the second parameter of the anonymous method that this delegate encapsulates

T3

Type of the third parameter of the anonymous method that this delegate encapsulates

T4

Type of the fourth parameter of the anonymous method that this delegate encapsulates

T5

Type of the fifth parameter of the anonymous method that this delegate encapsulates

Returns<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, TReturn>)

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, TReturn> func)
Parameters
Func<T1, T2, T3, T4, T5, T6, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

T2

Type of the second parameter of the anonymous method that this delegate encapsulates

T3

Type of the third parameter of the anonymous method that this delegate encapsulates

T4

Type of the fourth parameter of the anonymous method that this delegate encapsulates

T5

Type of the fifth parameter of the anonymous method that this delegate encapsulates

T6

Type of the sixth parameter of the anonymous method that this delegate encapsulates

Returns<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, TReturn>)

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, TReturn> func)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

T2

Type of the second parameter of the anonymous method that this delegate encapsulates

T3

Type of the third parameter of the anonymous method that this delegate encapsulates

T4

Type of the fourth parameter of the anonymous method that this delegate encapsulates

T5

Type of the fifth parameter of the anonymous method that this delegate encapsulates

T6

Type of the sixth parameter of the anonymous method that this delegate encapsulates

T7

Type of the seventh parameter of the anonymous method that this delegate encapsulates

Returns<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TReturn>)

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TReturn> func)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

T2

Type of the second parameter of the anonymous method that this delegate encapsulates

T3

Type of the third parameter of the anonymous method that this delegate encapsulates

T4

Type of the fourth parameter of the anonymous method that this delegate encapsulates

T5

Type of the fifth parameter of the anonymous method that this delegate encapsulates

T6

Type of the sixth parameter of the anonymous method that this delegate encapsulates

T7

Type of the seventh parameter of the anonymous method that this delegate encapsulates

T8

Type of the eighth parameter of the anonymous method that this delegate encapsulates

Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn>)

Specifies the delegate to evaluate and return value for the expected member.

Declaration
IAssertable Returns<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn> func)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TReturn> func

Returns
IAssertable

Reference to IAssertable interface.

Type Parameters
T1

Type of the first parameter of the anonymous method that this delegate encapsulates

T2

Type of the second parameter of the anonymous method that this delegate encapsulates

T3

Type of the third parameter of the anonymous method that this delegate encapsulates

T4

Type of the fourth parameter of the anonymous method that this delegate encapsulates

T5

Type of the fifth parameter of the anonymous method that this delegate encapsulates

T6

Type of the sixth parameter of the anonymous method that this delegate encapsulates

T7

Type of the seventh parameter of the anonymous method that this delegate encapsulates

T8

Type of the eighth parameter of the anonymous method that this delegate encapsulates

T9

Type of the ninth parameter of the anonymous method that this delegate encapsulates

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.