forked from devlooped/moq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IInvocation.cs
39 lines (33 loc) · 1.05 KB
/
IInvocation.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
38
39
// Copyright (c) 2007, Clarius Consulting, Manas Technology Solutions, InSTEDD, and Contributors.
// All rights reserved. Licensed under the BSD 3-Clause License; see License.txt.
using System.Collections.Generic;
using System.Reflection;
namespace Moq
{
/// <summary>
/// Provides information about an invocation of a mock object.
/// </summary>
public interface IInvocation
{
/// <summary>
/// Gets the method of the invocation.
/// </summary>
MethodInfo Method { get; }
/// <summary>
/// Gets the arguments of the invocation.
/// </summary>
IReadOnlyList<object> Arguments { get; }
/// <summary>
/// Gets the setup that matched this invocation (or <see langword="null"/> if there was no matching setup).
/// </summary>
ISetup MatchingSetup { get; }
/// <summary>
/// Gets whether this invocation was successfully verified by any of the various <c>`Verify`</c> methods.
/// </summary>
bool IsVerified { get; }
/// <summary>
/// Gets the return value of the invocation.
/// </summary>
object ReturnValue { get; }
}
}