Skip to content

Commit

Permalink
Let TrySetReturnValue be called from derived classes
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy9 committed Jun 10, 2018
1 parent 7319748 commit 209fbff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rubberduck.Main/ComClientLibrary/UnitTesting/FakeBase.cs
Expand Up @@ -41,7 +41,7 @@ protected override void TrackUsage(string parameter, object value, string typeNa
SuppressesCall = false;
}

private bool TrySetReturnValue(string parameter, object value, bool any = false)
protected bool TrySetReturnValue(string parameter, object value, bool any = false)
{
var returnInfo =
ReturnValues.Where(r => r.Invocation == (any ? FakesProvider.AllInvocations : (int) InvocationCount) &&
Expand All @@ -56,7 +56,7 @@ private bool TrySetReturnValue(string parameter, object value, bool any = false)
return true;
}

private bool TrySetReturnValue(bool any = false)
protected bool TrySetReturnValue(bool any = false)
{
var returnInfo =
ReturnValues.Where(r => r.Invocation == (any ? FakesProvider.AllInvocations : (int) InvocationCount))
Expand Down

0 comments on commit 209fbff

Please sign in to comment.