From 06b94d0aa12bdf7f6bef388f540ef74a05bc3b73 Mon Sep 17 00:00:00 2001 From: Martin Strecker Date: Thu, 5 Sep 2019 10:44:52 +0100 Subject: [PATCH 1/3] Add ReturnValue to IInvocation --- src/Moq/IInvocation.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Moq/IInvocation.cs b/src/Moq/IInvocation.cs index 6118f579d..c512f2a19 100644 --- a/src/Moq/IInvocation.cs +++ b/src/Moq/IInvocation.cs @@ -20,5 +20,10 @@ public interface IInvocation /// Gets the arguments of the invocation. /// IReadOnlyList Arguments { get; } + + /// + /// Gets the return value of the invocation. + /// + object ReturnValue { get; } } } \ No newline at end of file From 9fb5acbf433406d79652b33936a690f5dc5c82b5 Mon Sep 17 00:00:00 2001 From: Martin Strecker Date: Sun, 11 Oct 2020 17:45:02 +0100 Subject: [PATCH 2/3] Add change log entry. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1df2ff01..bb7bef048 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ The format is loosely based on [Keep a Changelog](http://keepachangelog.com/en/1 * 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) +* New property `IInvocation.ReturnValue` to query recorded invocations return values (@MaStr11, #921) #### Fixed From 633d9c84da21a1e135059f57abbf9f4afc795595 Mon Sep 17 00:00:00 2001 From: Martin Strecker Date: Sun, 11 Oct 2020 17:46:20 +0100 Subject: [PATCH 3/3] Fix bullet list error in changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb7bef048..3eb34065e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ 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