Skip to content

Commit

Permalink
Add ReturnValue to IInvocation (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaStr11 committed Oct 11, 2020
1 parent 7827365 commit 947c6a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ The format is loosely based on [Keep a Changelog](http://keepachangelog.com/en/1
#### Added

* New method overloads for `It.Is`, `It.IsIn`, and `It.IsNotIn` that compare values using a custom `IEqualityComparer<T>` (@weitzhandler, #1064)
Implement It.Is, It.IsIn, It.IsNotIn with a comparer overload (#1059)
* Implement It.Is, It.IsIn, It.IsNotIn with a comparer overload (#1059)
* New property `IInvocation.ReturnValue` to query recorded invocations return values (@MaStr11, #921)

#### Fixed

Expand Down
5 changes: 5 additions & 0 deletions src/Moq/IInvocation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,10 @@ public interface IInvocation
/// 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; }
}
}

0 comments on commit 947c6a0

Please sign in to comment.