Skip to content

Commit f865281

Browse files
committed
Re-fix tech issues (Moq usage)
1 parent 5638740 commit f865281

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

Tests/CSF.Screenplay.Tests/ActorTests.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,20 @@ public void PerformAsyncWithGenericResultShouldThrowIfCalledAfterActorIsDisposed
109109
Assert.That(() => ((ICanPerform) sut).PerformAsync(performable), Throws.InstanceOf<ObjectDisposedException>());
110110
}
111111

112-
public sealed class DisposableAbility1 : IDisposable
112+
public class DisposableAbility1 : IDisposable
113113
{
114-
public virtual void Dispose() {}
114+
public virtual void Dispose()
115+
{
116+
GC.SuppressFinalize(this);
117+
}
115118
}
116119

117-
public sealed class DisposableAbility2 : IDisposable
120+
public class DisposableAbility2 : IDisposable
118121
{
119-
public virtual void Dispose() {}
122+
public virtual void Dispose()
123+
{
124+
GC.SuppressFinalize(this);
125+
}
120126
}
121127

122128
#endregion

0 commit comments

Comments
 (0)