MOQ Webminar

Preview:

DESCRIPTION

Summary of MOQ features

Citation preview

MOQMariano RodriguezArchitect, Tellago, Tellago Studios

Agenda

• What is a Mock• MOQ Features• AAA mocking pattern• Questions

What is a Mock

• Test Double / Stand-in• Like an object’s stunt double• Use to replace dependencies• Mimics the behavior of the real

object

MOQ Features

• Simple Fluent API• Strict or Loose Mocking• Mocks with expression / matchers• Assert occurrences of invocations• MOQ Queryable• Sequence

MOQ Features

• Raise events on calls• Recursive mocking• What can I mock:• Virtual Properties/Methods/Events• Interfaces• Virtual protected

methods/Properties• Stub properties

AAA Pattern

• Arrange all preconditions and inputs• Act on the object under test• Assert expectations

Demos

Questions?

Recommended