Skip to content

Commit adab10c

Browse files
committed
Stop ReturnsValue from being static as it should not be shared across multiple fakes - fixes #5944
1 parent 5d6ac51 commit adab10c

File tree

1 file changed

+1
-1
lines changed
  • Rubberduck.Main/ComClientLibrary/UnitTesting

1 file changed

+1
-1
lines changed

Rubberduck.Main/ComClientLibrary/UnitTesting/FakeBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected bool TrySetReturnValue(bool any = false)
7575

7676
#region IFake
7777

78-
private static readonly List<ReturnValueInfo> ReturnValues = new List<ReturnValueInfo>();
78+
private readonly List<ReturnValueInfo> ReturnValues = new List<ReturnValueInfo>();
7979
public virtual void Returns(object value, int invocation = FakesProvider.AllInvocations)
8080
{
8181
ReturnValues.Add(new ReturnValueInfo(invocation, string.Empty, string.Empty, value));

0 commit comments

Comments
 (0)