diff --git a/CHANGELOG.md b/CHANGELOG.md index f1df2ff01..3eb34065e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` (@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 diff --git a/src/Moq/IInvocation.cs b/src/Moq/IInvocation.cs index b80766a66..8324365b6 100644 --- a/src/Moq/IInvocation.cs +++ b/src/Moq/IInvocation.cs @@ -30,5 +30,10 @@ public interface IInvocation /// Gets whether this invocation was successfully verified by any of the various `Verify` methods. /// bool IsVerified { get; } + + /// + /// Gets the return value of the invocation. + /// + object ReturnValue { get; } } } \ No newline at end of file