MockFactory Methods

Moq

Collapse imageExpand ImageCopy imageCopyHover image

The MockFactory type exposes the following members.

Methods

  NameDescription
Public methodCreate<(Of <<'(T>)>>)()()()()
Creates a new mock with the default MockBehavior specified at factory construction time.
Public methodCreate<(Of <<'(T>)>>)(array<Object>[]()[][])
Creates a new mock with the default MockBehavior specified at factory construction time and with the the given constructor arguments for the class.
Public methodCreate<(Of <<'(T>)>>)(MockBehavior)
Creates a new mock with the given behavior.
Public methodCreate<(Of <<'(T>)>>)(MockBehavior, array<Object>[]()[][])
Creates a new mock with the given behavior and with the the given constructor arguments for the class.
Protected methodCreateMock<(Of <<'(T>)>>)
Implements creation of a new mock within the factory.
Public methodVerify
Verifies all verifiable expectations on all mocks created by this factory.
Public methodVerifyAll
Verifies all verifiable expectations on all mocks created by this factory.
Protected methodVerifyMocks
Invokes verifyAction for each mock in Mocks, and accumulates the resulting MockVerificationException that might be thrown from the action.

See Also