forked from devlooped/moq
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Mock.cs
37 lines (30 loc) · 760 Bytes
/
Mock.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2007, Clarius Consulting, Manas Technology Solutions, InSTEDD, and Contributors.
// All rights reserved. Licensed under the BSD 3-Clause License; see License.txt.
namespace Moq
{
partial class Mock : IInterceptor
{
void IInterceptor.Intercept(Invocation invocation)
{
if (HandleWellKnownMethods.Handle(invocation, this))
{
return;
}
RecordInvocation.Handle(invocation, this);
if (FindAndExecuteMatchingSetup.Handle(invocation, this))
{
return;
}
if (HandleAutoSetupProperties.Handle(invocation, this))
{
return;
}
if (HandleEventSubscription.Handle(invocation, this))
{
return;
}
FailForStrictMock.Handle(invocation, this);
Return.Handle(invocation, this);
}
}
}