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 jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class CommonExpectation<TContainer>

Inheritance
System.Object
CommonExpectation<TContainer>
ActionExpectation
CollectionExpectation<TReturn>
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.Expectations
Assembly: Telerik.JustMock.dll

Syntax

public class CommonExpectation<TContainer> : IAction<TContainer>, IDoInstead<TContainer>, IThrows<TContainer>, IAssertable, IMustBeCalled, ISetupBehavior, IOccurrence, IOrder, IPrerequisite, IDisposable, IInstanceScope<TContainer>, IMethodMock
Type Parameters
TContainer

Properties

IsMet

Declaration
public bool IsMet { get; }
Property Value
System.Boolean

Implements
IPrerequisite.IsMet

Methods

AfterAll(IPrerequisite[])

Declaration
public IAssertable AfterAll(params IPrerequisite[] prerequisites)
Parameters
IPrerequisite[] prerequisites

Returns
IAssertable

Implements
IPrerequisite.AfterAll(IPrerequisite[])

CallOriginal()

Declaration
public IAssertable CallOriginal()
Returns
IAssertable

Implements
IAssertable.CallOriginal()

Dispose()

Declaration
public void Dispose()
Implements
System.IDisposable.Dispose()

DoInstead(Action)

Declaration
public TContainer DoInstead(Action action)
Parameters
System.Action action

Returns
TContainer

Implements
IDoInstead<TContainer>.DoInstead(Action)

DoInstead(Delegate)

Declaration
public TContainer DoInstead(Delegate delegate)
Parameters
System.Delegate delegate

Returns
TContainer

Implements
IDoInstead<TContainer>.DoInstead(Delegate)

DoInstead<T1>(Action<T1>)

Declaration
public TContainer DoInstead<T1>(Action<T1> action)
Parameters
System.Action<T1> action

Returns
TContainer

Type Parameters
T1

Implements
IDoInstead<TContainer>.DoInstead<T1>(Action<T1>)

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

Declaration
public TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> action

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

Implements
IDoInstead<TContainer>.DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>)

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

Declaration
public TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> action

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

T11

Implements
IDoInstead<TContainer>.DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>)

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

Declaration
public TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> action

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

T11

T12

Implements
IDoInstead<TContainer>.DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>)

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

Declaration
public TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> action

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

T11

T12

T13

Implements
IDoInstead<TContainer>.DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>)

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

Declaration
public TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> action

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

T11

T12

T13

T14

Implements
IDoInstead<TContainer>.DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>)

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

Declaration
public TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> action

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

T11

T12

T13

T14

T15

Implements
IDoInstead<TContainer>.DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>)

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

Declaration
public TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> action

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

T11

T12

T13

T14

T15

T16

Implements
IDoInstead<TContainer>.DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>)

DoInstead<T1, T2>(Action<T1, T2>)

Declaration
public TContainer DoInstead<T1, T2>(Action<T1, T2> action)
Parameters
System.Action<T1, T2> action

Returns
TContainer

Type Parameters
T1

T2

Implements
IDoInstead<TContainer>.DoInstead<T1, T2>(Action<T1, T2>)

DoInstead<T1, T2, T3>(Action<T1, T2, T3>)

Declaration
public TContainer DoInstead<T1, T2, T3>(Action<T1, T2, T3> action)
Parameters
System.Action<T1, T2, T3> action

Returns
TContainer

Type Parameters
T1

T2

T3

Implements
IDoInstead<TContainer>.DoInstead<T1, T2, T3>(Action<T1, T2, T3>)

DoInstead<T1, T2, T3, T4>(Action<T1, T2, T3, T4>)

Declaration
public TContainer DoInstead<T1, T2, T3, T4>(Action<T1, T2, T3, T4> action)
Parameters
System.Action<T1, T2, T3, T4> action

Returns
TContainer

Type Parameters
T1

T2

T3

T4

Implements
IDoInstead<TContainer>.DoInstead<T1, T2, T3, T4>(Action<T1, T2, T3, T4>)

DoInstead<T1, T2, T3, T4, T5>(Action<T1, T2, T3, T4, T5>)

Declaration
public TContainer DoInstead<T1, T2, T3, T4, T5>(Action<T1, T2, T3, T4, T5> action)
Parameters
Action<T1, T2, T3, T4, T5> action

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

Implements
IDoInstead<TContainer>.DoInstead<T1, T2, T3, T4, T5>(Action<T1, T2, T3, T4, T5>)

DoInstead<T1, T2, T3, T4, T5, T6>(Action<T1, T2, T3, T4, T5, T6>)

Declaration
public TContainer DoInstead<T1, T2, T3, T4, T5, T6>(Action<T1, T2, T3, T4, T5, T6> action)
Parameters
Action<T1, T2, T3, T4, T5, T6> action

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

Implements
IDoInstead<TContainer>.DoInstead<T1, T2, T3, T4, T5, T6>(Action<T1, T2, T3, T4, T5, T6>)

DoInstead<T1, T2, T3, T4, T5, T6, T7>(Action<T1, T2, T3, T4, T5, T6, T7>)

Declaration
public TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7>(Action<T1, T2, T3, T4, T5, T6, T7> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7> action

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

Implements
IDoInstead<TContainer>.DoInstead<T1, T2, T3, T4, T5, T6, T7>(Action<T1, T2, T3, T4, T5, T6, T7>)

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

Declaration
public TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8>(Action<T1, T2, T3, T4, T5, T6, T7, T8> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8> action

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

Implements
IDoInstead<TContainer>.DoInstead<T1, T2, T3, T4, T5, T6, T7, T8>(Action<T1, T2, T3, T4, T5, T6, T7, T8>)

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

Declaration
public TContainer DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9> action)
Parameters
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9> action

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

Implements
IDoInstead<TContainer>.DoInstead<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>)

DoNothing()

Declaration
public IAssertable DoNothing()
Returns
IAssertable

Implements
IAction<TContainer>.DoNothing()

IgnoreArguments()

Declaration
public TContainer IgnoreArguments()
Returns
TContainer

IgnoreInstance()

Declaration
public TContainer IgnoreInstance()
Returns
TContainer

Implements
IInstanceScope<TContainer>.IgnoreInstance()

InOrder(String)

Declaration
public IOccurrence InOrder(string message = null)
Parameters
System.String message

Returns
IOccurrence

Implements
IOrder.InOrder(String)

InSequence()

Declaration
public IAssertable InSequence()
Returns
IAssertable

Implements
ISetupBehavior.InSequence()

MustBeCalled(String)

Declaration
public IDisposable MustBeCalled(string message = null)
Parameters
System.String message

Returns
System.IDisposable

Implements
IMustBeCalled.MustBeCalled(String)

Occurs(Int32, String)

Declaration
public IDisposable Occurs(int numberOfTimes, string message = null)
Parameters
System.Int32 numberOfTimes

System.String message

Returns
System.IDisposable

Implements
IOccurrence.Occurs(Int32, String)

OccursAtLeast(Int32, String)

Declaration
public IDisposable OccursAtLeast(int numberOfTimes, string message = null)
Parameters
System.Int32 numberOfTimes

System.String message

Returns
System.IDisposable

Implements
IOccurrence.OccursAtLeast(Int32, String)

OccursAtMost(Int32, String)

Declaration
public IDisposable OccursAtMost(int numberOfTimes, string message = null)
Parameters
System.Int32 numberOfTimes

System.String message

Returns
System.IDisposable

Implements
IOccurrence.OccursAtMost(Int32, String)

OccursNever(String)

Declaration
public IDisposable OccursNever(string message = null)
Parameters
System.String message

Returns
System.IDisposable

Implements
IOccurrence.OccursNever(String)

OccursOnce(String)

Declaration
public IDisposable OccursOnce(string message = null)
Parameters
System.String message

Returns
System.IDisposable

Implements
IOccurrence.OccursOnce(String)

OnAllThreads()

Declaration
public IAssertable OnAllThreads()
Returns
IAssertable

Implements
ISetupBehavior.OnAllThreads()

ProcessDoInstead(Delegate, Boolean)

Declaration
protected void ProcessDoInstead(Delegate delg, bool ignoreDelegateReturnValue)
Parameters
System.Delegate delg

System.Boolean ignoreDelegateReturnValue

Raises(Action, EventArgs)

Declaration
public TContainer Raises(Action eventExpression, EventArgs args)
Parameters
System.Action eventExpression

System.EventArgs args

Returns
TContainer

Implements
IAction<TContainer>.Raises(Action, EventArgs)

Raises(Action, Object[])

Declaration
public TContainer Raises(Action eventExpression, params object[] args)
Parameters
System.Action eventExpression

System.Object[] args

Returns
TContainer

Implements
IAction<TContainer>.Raises(Action, Object[])

Raises<T1>(Action, Func<T1, EventArgs>)

Declaration
public TContainer Raises<T1>(Action eventExpression, Func<T1, EventArgs> func)
Parameters
System.Action eventExpression

System.Func<T1, System.EventArgs> func

Returns
TContainer

Type Parameters
T1

Implements
IAction<TContainer>.Raises<T1>(Action, Func<T1, EventArgs>)

Raises<T1, T2>(Action, Func<T1, T2, EventArgs>)

Declaration
public TContainer Raises<T1, T2>(Action eventExpression, Func<T1, T2, EventArgs> func)
Parameters
System.Action eventExpression

System.Func<T1, T2, System.EventArgs> func

Returns
TContainer

Type Parameters
T1

T2

Implements
IAction<TContainer>.Raises<T1, T2>(Action, Func<T1, T2, EventArgs>)

Raises<T1, T2, T3>(Action, Func<T1, T2, T3, EventArgs>)

Declaration
public TContainer Raises<T1, T2, T3>(Action eventExpression, Func<T1, T2, T3, EventArgs> func)
Parameters
System.Action eventExpression

System.Func<T1, T2, T3, System.EventArgs> func

Returns
TContainer

Type Parameters
T1

T2

T3

Implements
IAction<TContainer>.Raises<T1, T2, T3>(Action, Func<T1, T2, T3, EventArgs>)

Raises<T1, T2, T3, T4>(Action, Func<T1, T2, T3, T4, EventArgs>)

Declaration
public TContainer Raises<T1, T2, T3, T4>(Action eventExpression, Func<T1, T2, T3, T4, EventArgs> func)
Parameters
System.Action eventExpression

System.Func<T1, T2, T3, T4, System.EventArgs> func

Returns
TContainer

Type Parameters
T1

T2

T3

T4

Implements
IAction<TContainer>.Raises<T1, T2, T3, T4>(Action, Func<T1, T2, T3, T4, EventArgs>)

Throws(Exception)

Declaration
public IAssertable Throws(Exception exception)
Parameters
System.Exception exception

Returns
IAssertable

Implements
IThrows<TContainer>.Throws(Exception)

Throws<T>()

Declaration
public IAssertable Throws<T>()
    where T : Exception
Returns
IAssertable

Type Parameters
T

Implements
IThrows<TContainer>.Throws<TException>()

Throws<T>(Object[])

Declaration
public IAssertable Throws<T>(params object[] args)
    where T : Exception
Parameters
System.Object[] args

Returns
IAssertable

Type Parameters
T

Implements
IThrows<TContainer>.Throws<TException>(Object[])

ThrowsAsync(Exception)

Declaration
public IAssertable ThrowsAsync(Exception exception)
Parameters
System.Exception exception

Returns
IAssertable

Implements
IThrows<TContainer>.ThrowsAsync(Exception)

ThrowsAsync<T>()

Declaration
public IAssertable ThrowsAsync<T>()
    where T : Exception
Returns
IAssertable

Type Parameters
T

Implements
IThrows<TContainer>.ThrowsAsync<TException>()

ThrowsAsync<T>(Object[])

Declaration
public IAssertable ThrowsAsync<T>(params object[] args)
    where T : Exception
Parameters
System.Object[] args

Returns
IAssertable

Type Parameters
T

Implements
IThrows<TContainer>.ThrowsAsync<TException>(Object[])

When(Func<Boolean>)

Declaration
public TContainer When(Func<bool> condition)
Parameters
System.Func<System.Boolean> condition

Returns
TContainer

When<T1>(Func<T1, Boolean>)

Declaration
public TContainer When<T1>(Func<T1, bool> condition)
Parameters
System.Func<T1, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

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

Declaration
public TContainer When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

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

Declaration
public TContainer When<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

T11

When<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, Boolean>)

Declaration
public TContainer When<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, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

T11

T12

When<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, Boolean>)

Declaration
public TContainer When<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, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

T11

T12

T13

When<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, Boolean>)

Declaration
public TContainer When<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, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

T11

T12

T13

T14

When<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, Boolean>)

Declaration
public TContainer When<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, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

T11

T12

T13

T14

T15

When<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, Boolean>)

Declaration
public TContainer When<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, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

T10

T11

T12

T13

T14

T15

T16

When<T1, T2>(Func<T1, T2, Boolean>)

Declaration
public TContainer When<T1, T2>(Func<T1, T2, bool> condition)
Parameters
System.Func<T1, T2, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

T2

When<T1, T2, T3>(Func<T1, T2, T3, Boolean>)

Declaration
public TContainer When<T1, T2, T3>(Func<T1, T2, T3, bool> condition)
Parameters
System.Func<T1, T2, T3, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

T2

T3

When<T1, T2, T3, T4>(Func<T1, T2, T3, T4, Boolean>)

Declaration
public TContainer When<T1, T2, T3, T4>(Func<T1, T2, T3, T4, bool> condition)
Parameters
System.Func<T1, T2, T3, T4, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

T2

T3

T4

When<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, Boolean>)

Declaration
public TContainer When<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

When<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, Boolean>)

Declaration
public TContainer When<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

When<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, Boolean>)

Declaration
public TContainer When<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

When<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, Boolean>)

Declaration
public TContainer When<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

When<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, Boolean>)

Declaration
public TContainer When<T1, T2, T3, T4, T5, T6, T7, T8, T9>(Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, bool> condition)
Parameters
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, System.Boolean> condition

Returns
TContainer

Type Parameters
T1

T2

T3

T4

T5

T6

T7

T8

T9

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)
MultipleReturnValueChainHelper.Returns<TReturn>(IAssertable, TReturn)

Was this article helpful?

Tell us how we can improve this article

Skip
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.