New to Telerik JustMockStart a free 30-day trial

IMustBeCalled

Interface

Defines an operation that marks a expectation as must.

Definition

Namespace:Telerik.JustMock.Expectations.Abstraction

Assembly:Telerik.JustMock.dll

Syntax:

C#
public interface IMustBeCalled

Derived Classes: ActionExpectationCollectionExpectation<TReturn>CommonExpectation<TContainer>FuncExpectation<TReturn>

Methods

Specifies that the mock call should be invoked to pass Mock.Assert<T>(T)

C#
IDisposable MustBeCalled(string message = null)
Parameters:messagestringReturns:

IDisposable

Disposable object that can be used to disable this arrangement.

In this article
DefinitionMethodsMustBeCalled(string)
Not finding the help you need?
Contact Support