Class Occurs
Defines filters for calls , used in conjunction with assert.
Inheritance
Inherited Members
Namespace: Telerik.JustMock
Assembly: Telerik.JustMock.dll
Syntax
public sealed class Occurs
Methods
AtLeast(Int32)
Specifies that the expected call should occur at least numberOfTimes
times.
Declaration
public static Occurs AtLeast(int numberOfTimes)
Parameters
System.Int32
numberOfTimes
Specific number of times |
Returns
Occurs
Occurs type. |
AtLeastOnce()
Specifies that the expected call should occur at least once.
Declaration
public static Occurs AtLeastOnce()
Returns
Occurs
Occurs type. |
AtMost(Int32)
Specifies that the expected call should occur at most numberOfTimes
times.
Declaration
public static Occurs AtMost(int numberOfTimes)
Parameters
System.Int32
numberOfTimes
Specific number of times |
Returns
Occurs
Occurs type. |
Exactly(Int32)
Specifies that the expected call should occur exactly numberOfTimes
times.
Declaration
public static Occurs Exactly(int numberOfTimes)
Parameters
System.Int32
numberOfTimes
Specific number of times |
Returns
Occurs
Occurs type. |
Never()
Specifies that the expected call must never occur
Declaration
public static Occurs Never()
Returns
Occurs
Occurs type. |
NotAvailable()
Specifies that occurrence is not available.
Declaration
public static Occurs NotAvailable()
Returns
Occurs
Occurs type. |
Once()
Specifies that the expected call should occur once.
Declaration
public static Occurs Once()
Returns
Occurs
Occurs type. |